Vcl.DBCtrls.TDBListBox.Style

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Style: TListBoxStyle read FStyle write SetStyle default 0;

C++

__property Style = {default=0};

Properties

Type Visibility Source Unit Parent
property published
Vcl.DBCtrls.pas
Vcl.DBCtrls.hpp
Vcl.DBCtrls TDBListBox

Description

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

Vcl.DBCtrls.TDBListBox.Style inherits from Vcl.StdCtrls.TCustomListBox.Style. All content below this line refers to Vcl.StdCtrls.TCustomListBox.Style.

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