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

TCustomRadioGroup

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TCustomRadioGroup: the base type for TRadioGroup

Declaration

Source position: extctrls.pp line 866

type TCustomRadioGroup = class(TCustomGroupBox)

  class procedure WSRegisterClass; override;

  

WSRegisterClass - Register this Class for the current Widget Set

protected

  procedure Loaded; override;

  

  procedure InitializeWnd; override;

  

InitializeWnd - initialise the window for this control

  procedure UpdateRadioButtonStates; virtual;

  

UpdateRadioButtonStates including implementing any pending changes

  procedure ReadState(); override;

  

  procedure SetItems();

  

SetItems - specifies the strings that form the Items of the group

  procedure SetColumns();

  

SetColumns - specifies the number of columns for displaying the items

  procedure SetItemIndex();

  

SetItemIndex - specifies an index for an item

  function GetItemIndex;

  

GetItemIndex - returns an index for an item

  procedure CheckItemIndexChanged; virtual;

  

CheckItemIndexChanged - find out if the index for an item has changes

public

  constructor Create(); override;

  

Create - constructor for TCustomRadioGroup: calls inherited Create, then sets list of buttons, and initialises layout and sizing properties

  destructor Destroy; override;

  

Destroy - destructor for TCustomRadioGroup: frees items and buttons, then calls inherited Destroy

  function CanModify; virtual;

  

CanModify - if True, modification of the RadioGroup is permitted

  function Rows;

  

Rows - the number of rows in which Items (radio boxes) are held

  property AutoFill: Boolean; [rw]

  

AutoFill - whether responses to Items should automatically be filled in

  property ItemIndex: Integer; [rw]

  

The Index value in the list of Items (a stringlist with the names of the selections for radio buttons)

  property Items: TStrings; [rw]

  

Items - a string list containing the captions for the radio boxes

  property Columns: Integer; [rw]

  

Columns - the number of columns in which the Items (radio buttons) are to be arranges

  property ColumnLayout: TColumnLayout; [rw]

  

ColumnLayout - HorizontalThenVertical or vice versa

  property OnClick: TNotifyEvent; [rw]

  

Event Handler for mouse click

end;

Inheritance

TCustomRadioGroup

  

TCustomRadioGroup: the base type for TRadioGroup

|

TCustomGroupBox

  

TCustomGroupBox - the base class for TGroupBox, TRadioGroup and TCheckGroup

|

TWinControl

|

TControl

|

TLCLComponent

  

TLCLComponent - base class for LCL components

|

TComponent,IUnknown,IInterfaceComponentReference

|

TPersistent

|

TObject

Description

TCustomRadioGroup: the base type for TRadioGroup

A group of related but mutually exclusive radio buttons, requiring the user to select one af a set of alternatives

This class defines Items, where the captions for individual radio boxes are stored, Rows and Columns for arranging the radio boxes, and ColumnLayout to determine whether the data are arranged down the columns first, or across the rows first.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.