TCustomComboBox.InitializeWnd procedure
Synchronizes the control and its widgetset class instance when the handle is created.
Declaration
procedure InitializeWnd; overrideDescription
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:
- ArrowKeysTraverseList
- DropDownCount
- ItemIndex
- MaxLength
- ReadOnly
- Style
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
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
