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

TCustomComboBox.InitializeWnd

Synchronizes the control and its widgetset class instance when the handle is created.

Declaration

Source position: stdctrls.pp line 345

protected procedure TCustomComboBox.InitializeWnd; override;

Description

InitializeWnd is overridden in TCustomComboBox to ensure that the widgetset class and the current class instance are synchronized. InitializeWnd calls the inherited method on entry.

InitializeWnd gets the string values for list items stored in the widgetset class instance (when present), and applies them to the Items property. The Sorted property in the control is applied to the list items provided by the widget.

Other property values are forwarded to the widgetset class instance, including:

Values in SelStart and SelLength are re-applied to update the edit box in the control to reflect any changes to property values.

InitializeWnd is called from CreateWnd after the Window handle has been allocated, and before any child handles are allocated.

See also

TCustomComboBox.Items

  

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

TCustomComboBox.ItemIndex

  

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

TCustomComboBox.Style

  

Controls the appearance and behavior for the combo-box.

TCustomComboBox.ReadOnly

  

Disallows free-form entry of Text into the combo-box edit field.

TCustomComboBox.MaxLength

  

The maximum length for text entered in the edit box for the control.

TCustomComboBox.DropDownCount

  

The maximum number of Items visible in the drop-down list for the control.

TCustomComboBox.ArrowKeysTraverseList

  

Indicates if keyboard Arrow (or cursor) keys can be used to move through the list.

TWinControl.InitializeWnd

  

Copies cached control properties to the newly created widget.

TWinControl.CreateWnd

  

Creates the interface object (widget) and assigns the value in Handle.


Version 3.2 Generated 2024-02-25 Home