{JUSTIFY}
Syntax
{JUSTIFY=Vertical_Justification,Horizontal_Justification}
|
Argument |
Type |
Description |
|
Vertical_Justification |
C |
The allowed values are:
|
|
Horizontal_Justification |
C |
The allowed values are:
|
Description
The {JUSTIFY} command controls the placement of a control within a cell in an Xdialog. The {JUSTIFY} command is typically inserted between {REGION} and {ENDREGION} commands.
Supported By
Alpha Five Version 5 and Above
Limitations
Desktop applications only
Example
|
result = ui_dlg_box("Title",<<%dlg% {region} Filename:| [.64filename]; {lf}; (Shared) Open as shared?; {endregion}; {lf}; {region} {justify=center,right} <*15&OK> <15&Cancel>; {endregion} %dlg% ) |
The following script displays variable dynamic text centered. [Picture]
|
dim cc as C cc = ui_get_text("","Text to be displayed: ") mytext="{'%O={B=Blue White}{C=Red}" + cc + "%}" dialog=<<%str% text after this next line will be centered; uncentered text; {justify=center} %str%+mytext+";" ui_dlg_box("center this",dialog) |

The following script justifies labels and fields. [Picture]
|
result=ui_dlg_box("Title",<<%dlg% {region} Enter your firstname, last name and occupation: ; {endregion}; {region} {justify=right}First Name: |{justify=left} [.20firstname]; {justify=right}Last Name: |{justify=left} [.20lastname]; {justify=right}Job: |{justify=left} [.30occupation]; {endregion}; {region} <&OK> <&Cancel>; {endregion}; %dlg% ) |

See Also