DelphiVCL.RadioButton or TRadioButton is a wrapper for a system radio button.
Use TRadioButton to add a radio button to a form. Radio buttons present a set of mutually exclusive options to the user- that is, only one radio button in a set can be selected at a time. When the user selects a radio button, the previously selected radio button becomes unselected. Radio buttons are frequently grouped in a radio group box (TGroupBox). Add the group box to the form first, then get the radio buttons from the Component palette and put them into the group box. Or you can add a TRadioGroup, a group that already has radio buttons in it so that you do not have to get the buttons from the Tool Palette.
By default, all radio buttons that are directly contained in the same windowed control container, such as a TRadioGroup or TPanel, are grouped. For example, two radio buttons on a form can be checked at the same time only if they are contained in separate containers, such as two different group boxes.
The Caption property can be used to define an accelerator key to the control.
Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.RadioButton using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.RadioButton) |
See the responses in our Windows command prompt:
You can also read short informations about the DelphiVCL.RadioButton using the print() command:
1 2 |
print(DelphiVCL.RadioButton) print(DelphiVCL.RadioButton.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.