The Qt documentation in C++ of this class can be read here: http://doc.trolltech.com/4.3/qradiobutton.html
A control for the form object, provides a radio button with a text label.
It can be switched on (checked) or off (unchecked).
If you would like to have a group of RadioButtons, use the Group property and set all RadioButtons to the same group. Exclusive RadioButtons are declared by setting the property Group to the same value on all radio buttons you like to group. |
Most important
Please read the control class overview Control as well.
Property Value As Boolean (ReadWrite)
Property OldValue As Boolean (ReadOnly)
Property Key As String (ReadOnly)
Holds the information, which key press would raise the event connected to this Control, e.g. Ctrl+O. The strings “Ctrl”, “Shift”, “Alt” and “Meta” are recognized.
Example
Shift+L Alt+U Alt+Shift+U Ctrl+Alt+C
Property Icon As String (ReadWrite)
An icon can be an absolute path to an image file (png, jpg,…) like c:\myfolder\myimage.png or can be an relative path to the current project like myimage.png (which is present in the current project directory). Relative paths are recommended.
Might be a String containing binary data. See the binary project example for using.
Example
Dim c As RadioButton c = Control("RadioButton0") ' RadioButton0 is declared in this form c.Icon = "tux.jpg" ' relative path. File exists in current project directory
See also Caption
Property Caption As String (ReadWrite)
Holds the text to be displayed on the Control.
Example
Dim c As RadioButton c = Control("RadioButton0") ' RadioButton0 is declared in this form c.Caption = "Hello World!"
See also Icon
Sub OnEvent()
This event is raised, whenever the user presses the Control, either by mouse or key.
Example
Sub RadioButton0_OnEvent() Print "RadioButton0 pressed" End Sub