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

TCustomListBox.InitializeWnd

Updates Items from the widgetset class and invalidates the item cache.

Declaration

Source position: stdctrls.pp line 585

protected procedure TCustomListBox.InitializeWnd; override;

Description

InitializeWnd is an overridden method used to synchronize the control and the widgetset class. InitializeWnd copies values for the Items property from the ones allocated in the widgetset class. The value in ItemIndex is passed to the widgetset class when needed. An internal flag is reset to invalidate the item cache for the control, and the item data from the widgetset class is applied. Finally, the value in ScrollWidth is passed to the widgetset class.

See also

TCustomListBox.Items

  

The list of all items defined in the control.

TCustomListBox.Sorted

  

Determines whether the list entries are sorted in alphanumeric order.

TCustomListBox.ItemIndex

  

Ordinal position for the currently selected item, -1 if none.

TCustomListBox.ScrollWidth

  

The virtual width of the list box, in pixels.

TWinControl.InitializeWnd

  

Copies cached control properties to the newly created widget.


Version 3.2 Generated 2024-02-25 Home