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

TCustomComboBox.DestroyWnd

Destroys the handle for the control (and its children).

Declaration

Source position: stdctrls.pp line 346

protected procedure TCustomComboBox.DestroyWnd; override;

Description

DestroyWnd is an overridden method in TCustomComboBox used to destroy the handle for the windowed control. This occurs when the control is freed, and when the handle is re-created in the widgetset class. DestroyWnd ensures that values for the ItemIndex and Items properties are retrieved from the widgetset class before it is destroyed or re-created. The value in Sorted is applied to the Items retrieved from the widgetset class.

DestroyWnd calls the inherited method prior to exit.

Errors

DestroyWnd calls RaiseGDBException to raise a catchable debugger exception if a handle has not been allocated for the control.

See also

TCustomComboBox.ItemIndex

  

The index of the currently selected item, or -1 if none is selected.

TCustomComboBox.Items

  

The list of items displayed in the combo-box control.

TCustomComboBox.Sorted

  

Determines whether the list entries are sorted in alphanumeric order.

TWinControl.DestroyWnd

  

Destroys the interface object (widget).

RaiseGDBException

  

Raises a catchable exception.


Version 3.2 Generated 2024-02-25 Home