Static Text O Directive {B} Operator

Syntax

{B={ Back_Color [, Selected_Back_Color [, Disabled_Back_Color ]] }

Arguments

Back_Color

Character. The background color.

Selected_Back_Color

Character. The background color of a selected list box item.

Disabled_Back_Color

Character. The background color of a disabled list box item.

Description

The {B} operator is used in the static text owner draw (O) directive to specify background colors.

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 Five 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