Show: Delphi C++
Display Preferences

Vcl.StdCtrls.TCustomListBox.Style

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Style: TListBoxStyle read FStyle write SetStyle default lbStandard;

C++

__property TListBoxStyle Style = {read=FStyle, write=SetStyle, default=0};

Properties

Type Visibility Source Unit Parent
property protected
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls TCustomListBox

Description

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

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.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance