RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TColorListBox.Style Property

Determines whether the list box is standard or owner-draw and whether it is virtual.

Pascal
property Style: TListBoxStyle;
C++
__property TColorBoxStyle Style;__property TListBoxStyle Style;

Use Style to specify whether the list box is a standard list box that displays text strings, or an owner-draw list box that can display graphical images. Owner-draw list boxes let you display items in some nonstandard way. In this case, you must write the code to paint items in the list box.  

In addition, Style controls whether the list box is virtual, which means that items are supplied dynamically using event handlers. By default, Style is lbStandard, meaning that the list box is not virtual and it displays each item as a string. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!