Displaying List Box Entries in Color

Description

To specify that the list box rows should be displayed in color, specify the font color in the owner-draw format string as follows:

O={[email protected]}{B=Red,Blue}{C=White,Cyan}{@1}

This change causes the list box to be displayed like this, Displaying List Box Text in Color:

images/XD_image159.jpg

Including Line Breaks in a List Box 

The following example puts a line break before each row of the list box by including the {LF} directive in the owner-draw string. This change causes the list box to be displayed like this, Including Line Breaks in a List Box:

images/XD_image161.jpg

Limitations

Desktop applications only.

See Also