Sign in Join
FPDoc Onlineexperiment

TComboBoxStyleHelper helper

In unit StdCtrls

Helper for the TComboBoxStyle type.

Declaration

pascal
TComboBoxStyleHelper = class

Description

TComboBoxStyleHelper is a type helper for TComboBoxStyle. TComboBoxStyleHelper provides convenience methods used to examine, adjust, or translate values in the TComboBoxStyle enumeration.

For example:

// does the style include an edit box?
if AComboBox.Style.HasEditBox then DoSomething;

// does the style use owner-draw?
if AComboBox.Style.IsOwnerDrawn then DoSomething;

// does the style use variable height items?
if AComboBox.Style.IsVariable then DoSomething;

// toggle the edit box visibility and use in the current style
AComboBox.Style := AComboBox.Style.SetEditBox(False);

See also

Methods

HasEditBoxpublicDetermines if the style includes an edit box.
SetEditBoxpublicEnables or disables an edit box according to the current style.
IsOwnerDrawnpublicIndicates if the combo-box control is owner-drawn.
IsVariablepublicIndicates if list items can have a variable height in the combo-box control.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.