Show: Delphi C++
Display Preferences

Vcl.ExtCtrls.TRadioGroup

From XE2 API Documentation
Jump to: navigation, search

Vcl.ExtCtrls.TCustomRadioGroupVcl.StdCtrls.TCustomGroupBoxVcl.Controls.TCustomControlVcl.Controls.TWinControlVcl.Controls.TControlSystem.Classes.TComponentSystem.Classes.TPersistent
TRadioGroup

Delphi

TRadioGroup = class(TCustomRadioGroup)

C++

class PASCALIMPLEMENTATION TRadioGroup : public TCustomRadioGroup

Contents

Properties

Type Visibility Source Unit Parent
class public
Vcl.ExtCtrls.pas
Vcl.ExtCtrls.hpp
Vcl.ExtCtrls Vcl.ExtCtrls

Description

TRadioGroup represents a group of radio buttons that function together.

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.

See Also

Code Examples

Personal tools
Previous Versions
Translations