Vcl.ExtCtrls.TLBGetColorsEvent
Delphi
TLBGetColorsEvent = procedure(Sender: TCustomColorListBox; Items: TStrings) of object;
C++
typedef void __fastcall (__closure *TLBGetColorsEvent)(TCustomColorListBox* Sender, System::Classes::TStrings* Items);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
type typedef |
public | Vcl.ExtCtrls.pas Vcl.ExtCtrls.hpp |
Vcl.ExtCtrls | Vcl.ExtCtrls |
Description
TLBGetColorsEvent is the type of a color list box's Vcl.ExtCtrls.TCustomColorListBox.OnGetColors and Vcl.ExtCtrls.TCustomColorListBox.OnGetColors event handlers.
TLBGetColorsEvent is raised when populating the color list box only when cbCustomColors is specified in the Style property.
Sender is the instance of the TColorListBox.
Items is a TStrings containing a list of colors displayed in the TCustomColorListBox. Items.Strings contains the list of display strings for the color list box, and Items.Objects contains the list of TColor values corresponding to each display name, cast as a TObject. When this event handler is entered, Items contains all of the colors that are specified in the Style property, such as cbStandard. Colors are added, moved, or removed from the TCustomColorListBox by manipulating this Items list.