RadioButtons.htm
Radio Buttons allow the user to select one of several items.
They are indicated via empty circles next to each label -
the one selected button has a black dot inside the circle.
Usually, these are shown with a line drawn around the group.
Delphi
Delphi 5.0
There are 2 basic ways to add Radio Buttons
- Place a GroupBox on the form, and then add RadioButtons to it.
- Adds lots of objects to your form
- You need to test the Checked property of each radio button
to determine which is selected.
Set one of the button's Checked property to True.
- Allows a separate Hint per button
- Allows separate events for each button
- Place a RadioGroup on the form, and then edit the Items
property to define the buttons.
- Allows only one Hint for the entire group of buttons
- A single event is called reguardless of which button is selected
Menus support Radio Button type functionality, but they use checkmarks
and does not indicate unselected options with empty circles.
Author: Robert Clemenzi -
clemenzi@cpcug.org