Static Text O Directive
Syntax
%O= [ {I} ] [ B={} ] [ C = {} ] [ {F} ] Text %
Arguments
- {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 static text. When you have multiple directives in a Format string, you separate them with semi-colons ";".
Example
flag = .t. ui_dlg_box("Colored Text",<<%dlg% Below is an example of 'owner draw' static text; {lf}; {'%O={F=Arial,18,B}{B=Blue White,Yellow,Win3D}{C=Dark Blue}{I:'a5_attachments32'} Alpha Anywhere Can Do Colored Static Text%?flag}; {lf}; {lf}; This is an Example of how static text can be enabled and disabled:; {lf}; {'Check or clear the box to enable or disable me?flag}; (flag) Enable/Disable text; %dlg%)
See Also