List Box O Directive

Syntax

%O= [ {I} ] [ B={} ] [ C={} ] [ {F} ] [ {@} ] Text %

Arguments

{@}

Character. Selects text from the list box entry. Refer to List Box O Directive {@} Operator.

{I}

Character. Specifies images to display. Refer to List Box O Directive {I} Operator.

B={}

Character. Specifies background colors. Refer to List Box O Directive B Operator.

C={}

Character. Specifies foreground colors. Refer to List Box O Directive C Operator.

{F}

Character. Specifies font, size, and style. Refer to List Box O Directive {F} Operator.

Text

Character. Optional. Free-form text as required at any point after %O= and before %. The {LF} operator may be used to generate additional lines.

Description

The O directive allows you to format the entries in a List Box control. When you have multiple directives in a Format string, you separate them with semi-colons ";".

Example 

dim drives20 as C
data = <<%a%
C:
D:
E:
F:
G:
H:
%a%
drives.initialize(data)
result = ui_dlg_box("Select a Drive",<<%dlg%
Select a drive letter:;
{region}
%I=filebox:3:8;O={I=1} {@1}%.10,10driveletter^#drives
{endregion};

%dlg%)

See Also