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

TCustomRadioGroup.InitializeWnd

Creates the visual components used in the radio group.

Declaration

Source position: extctrls.pp line 754

protected procedure TCustomRadioGroup.InitializeWnd; override;

Description

InitializeWnd is an overridden method in TCustomRadioGroup used to initialize the TRadioButton instances which represent the Items on the control. A catchable debugger exception is raised, and no actions are performed, if InitializeWnd has already been called but has not yet been completed.

InitializeWnd recreates the TRadioButton instances in the internal storage for the class and configures their event handlers, Fonts, BorderSpacing, ControlStyle flags, TabStop and TabOrder settings, Caption, and Parent control. This includes the hidden radio button used (when needed for a widgetset) to allow all items in the group to become unchecked. The radio button representing the value in ItemIndex has its Checked property set to True, or the hidden radio button when ItemIndex is -1.

The inherited method is called to initial handles, window flags, text, and the enable state for the controls.

InitializeWnd is called from the CreateWnd method in the ancestor class.

See also

TCustomRadioGroup.Items

  

Contains the captions for the radio button displayed in the control.

TCustomRadioGroup.ItemIndex

  

The ordinal position in Items for the selected radio button in the group.

TRadioButton

  

Implement a radio button control.

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 4.0 Generated 2025-05-03 Home