Sign in Join
FPDoc Onlineexperiment

TCustomComboBox.DroppedDown property

Member of TCustomComboBoxpublicIn unit StdCtrls

Indicates whether the drop-down list has been displayed.

Declaration

pascal
property DroppedDown: Boolean read GetDroppedDown write SetDroppedDown;

Description

DroppedDown is a Boolean property which indicates whether the drop-down list for the control has been displayed.

Reading the value for the property causes the widgetset class to be queried when a handle has been allocated for the control. Otherwise, the stored value for the property is used.

Setting a new value for the property causes the widgetset class to be notified of the changed property value. No actions are performed if a handle has not been allocated for the control, or during LCL component streaming. Setting this property opens or closes the drop-down list.

The value in DroppedDown is maintained when the Style for the control is altered, when CBN_DROPDOWN or CBN_CLOSEUP control messages are handled, and when key down events are handled which change the visibility of the drop-down list.

For the macOS Carbon widgetset, setting DroppedDown to True does not cause the drop-down list to be displayed when Style is set to csDropDownList.

See also

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