RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRadioGroup Class

TRadioGroup represents a group of radio buttons that function together.

Pascal
TRadioGroup = class(TCustomRadioGroup);
C++
class TRadioGroup : public TCustomRadioGroup;

ExtCtrls

A TRadioGroup object is a special group box that contains only radio buttons. Radio buttons that are placed directly in the same control component are said to be "grouped." When the user checks a radio button, all other radio buttons in its group become unchecked. Hence, two radio buttons on a form can be checked at the same time only if they are placed in separate containers, such as group boxes. 

To add radio buttons to a TRadioGroup, edit the Items property in the Object Inspector. Each string in Items makes a radio button appear in the group box with the string as its caption. The value of the ItemIndex property determines which radio button is currently selected. 

Display the radio buttons in a single column or in multiple columns by setting the Columns property.

Note: Setting the radio group's BiDiMode to bdRightToLeft automatically flips its radio buttons. The FlipChildren method has no effect.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!