[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'StdCtrls' (#lcl)

# TComboBoxStyleHelper

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Helper for the TComboBoxStyle type.

## Declaration

Source position: stdctrls.pp line 272

`type TComboBoxStyleHelper = type helper`
`public`
`function HasEditBox;` |  | Determines if the style includes an edit box.
`function SetEditBox();` |  | Enables or disables an edit box according to the current style.
`function IsOwnerDrawn;` |  | Indicates if the combo-box control is owner-drawn.
`function IsVariable;` |  | Indicates if list items can have a variable height in the combo-box control.
`end;`

## Inheritance

`TComboBoxStyleHelper` |  | Helper for the TComboBoxStyle type.

## 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

TCustomComboBox.Style |  | Controls the appearance and behavior for the combo-box.
TComboBoxStyle |  | The display style available for combo-box controls.