Sign in Join
FPDoc Onlineexperiment

TCustomRadioGroup.InitializeWnd procedure

Member of TCustomRadioGroupprotectedIn unit ExtCtrls

Creates the visual components used in the radio group.

Declaration

pascal
procedure 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.