RADIO_BUTTON Properties |
Radio Button controls are used to control a variable between a series of pre-set states, offering one choice from a group of options. When one radio button is selected, it becomes activated (On) and all other related radio buttons are automatically reset (Off).
This control can be created either by using the RADIO_BUTTON directive or by using the NOMADS Panel Designer to draw a Radio Button Control and apply the desired attributes.
Below is a list of properties used to define and manipulate Radio Button controls. Use the links in the Property column to access the PxPlus Help page for a selected property. The Help page may provide additional details, particularly if the property can be used to define other controls.
For a complete list of all the properties available, see Properties List.
Property |
Description | |||||||||||||||||||||
Background color when button is pressed. Two colors can be specified for radio buttons by using the / (slash) as a separator (i.e. RGB:100 100 100/Light Blue). For information on valid color names and color specifications, see Color Properties. Note: | ||||||||||||||||||||||
Color(s) of button border when button is pressed. Two colors can be specified for radio buttons by using the / (slash) as a separator (i.e. RGB:100 100 100/Light Blue). For information on valid color names and color specifications, see Color Properties. Border colors are applied only if a Border$ property is specified for the button. Note: | ||||||||||||||||||||||
Foreground text color when button is pressed. For information on valid color names and color specifications, see Color Properties. Note: | ||||||||||||||||||||||
Background color. For information on valid color names and color specifications, see Color Properties. (Default: "DEFAULT") | ||||||||||||||||||||||
Defines where in a button the bitmap will be positioned relative the text on a button. It is only applicable if there is both a bitmap and text on the button. Possible values are:
(The Bitmap Centered option was added in PxPlus 2018 Update 1.) | ||||||||||||||||||||||
Controls the type of border that will be used when drawing a radio button. Possible values and formats are Solid, None, Double, Groove, Ridge, Inset and Outset.
If not set, it will have the value of "Default" (or ""), which indicates that the system should use the system default button styling. Note: | ||||||||||||||||||||||
Controls the color(s) of the border for any radio button whose border style (see Border$ property) is other than the system default. For information on valid color names and color specifications, see Color Properties. This property can include either one or two colors separated by a / (slash). If only a single color is provided, then this color is used for all four borders. If two colors are supplied, the first color is used to define the Top/Left borders, while the second color is used to define the Bottom/Right borders. The value can be set to either a numeric or a string value. If setting a numeric value, the value set is the internal color number for the desired color. If setting a string value, any form of color specification may be used (color name, RGB, HSL, or HTML color code). Note: | ||||||||||||||||||||||
Controls the width of the border (in pixels) for any radio button whose border style (see Border$ property) is other than the system default. This property can only contain a numeric integer. Note: | ||||||||||||||||||||||
This property, when set to any value, will cause the control to be moved to the top of the display order. Once at the top of the display order, the control will appear visually on top of any other control on the window. (Default: Not Applicable - Always returns 0) | ||||||||||||||||||||||
Screen position (column) of control. | ||||||||||||||||||||||
Width of control in column units. | ||||||||||||||||||||||
Control type ("RADIO_BUTTON"). See RADIO_BUTTON directive. | ||||||||||||||||||||||
Controls the type of cursor to display whenever the mouse moves over the specified control. Possible values are:
| ||||||||||||||||||||||
Background color when button is disabled. Two colors can be specified for radio buttons by using the / (slash) as a separator (i.e. RGB:100 100 100/Light Blue). For information on valid color names and color specifications, see Color Properties. Note: | ||||||||||||||||||||||
Button border color when button is disabled. Two colors can be specified for radio buttons by using the / (slash) as a separator (i.e. RGB:100 100 100/Light Blue). For information on valid color names and color specifications, see Color Properties. Border colors are applied only if a Border$ property is specified for the button. Note: | ||||||||||||||||||||||
Foreground text color when button is disabled. For information on valid color names and color specifications, see Color Properties. Note: | ||||||||||||||||||||||
Enabled indicator: 1 = True; 0 = False (Default: 1) | ||||||||||||||||||||||
Last change terminator. | ||||||||||||||||||||||
Focus indicator: 1 = Control has focus (Default: 0) | ||||||||||||||||||||||
Background color when the control has focus. Two colors can be specified for radio buttons by using the / (slash) as a separator (i.e. RGB:100 100 100/Light Blue). For information on valid color names and color specifications, see Color Properties. Note: | ||||||||||||||||||||||
Color(s) of button border when the button has focus. Two colors can be specified for radio buttons by using the / (slash) as a separator (i.e. RGB:100 100 100/Light Blue). For information on valid color names and color specifications, see Color Properties. Border colors are applied only if a Border$ property is specified for the button. Note: | ||||||||||||||||||||||
Foreground text color when the control has focus. For information on valid color names and color specifications, see Color Properties. Note: | ||||||||||||||||||||||
This property is used to reference the font for a control. It will contain (or can be set to) a string containing three comma-separated fields of the font name, size and attributes. See 'FONT' mnemonic. Example: To set the font to Arial, 1.5 times normal size, and Bold, the format would be xxx'Font$="Arial,1.5,B". | ||||||||||||||||||||||
Controls how the image on the button will display when the button is disabled. Applicable only when there is a bitmap on the button. Possible values are:
Note:
| ||||||||||||||||||||||
Height of control in pixels. | ||||||||||||||||||||||
Background color when mouse is over a button. Two colors can be specified for radio buttons by using the / (slash) as a separator (i.e. RGB:100 100 100/Light Blue). For information on valid color names and color specifications, see Color Properties. Note: | ||||||||||||||||||||||
Color(s) of button border when mouse is over a button. Two colors can be specified for radio buttons by using the / (slash) as a separator (i.e. RGB:100 100 100/Light Blue). For information on valid color names and color specifications, see Color Properties. Border colors are applied only if a Border$ property is specified for the button. Note: | ||||||||||||||||||||||
Hover color. The button is highlighted when the mouse moves over its location. For information on valid color names and color specifications, see Color Properties. (Default: "DEFAULT") Note: | ||||||||||||||||||||||
Foreground text color when mouse is over a button. For information on valid color names and color specifications, see Color Properties. Note: | ||||||||||||||||||||||
Windows handle for control. | ||||||||||||||||||||||
Radio button index to reference. | ||||||||||||||||||||||
Number of images contained in a bitmap button: 1 to 4. (Default: 0) | ||||||||||||||||||||||
Hot key to jump to control. | ||||||||||||||||||||||
Left margin for control in pixels. | ||||||||||||||||||||||
Screen position of control. | ||||||||||||||||||||||
Height of control in number of lines. | ||||||||||||||||||||||
Defines how a control will look. Possible values are:
| ||||||||||||||||||||||
This property reports/sets the CTL value to generate when an object is selected on a right-click of the mouse. | ||||||||||||||||||||||
Message line text for the control. | ||||||||||||||||||||||
User object method. (Default: 0 - No object specified) The 'ObjectID property allows applications to intercept property values and add methods to controls. When set to a valid Object ID by the application, you can add methods and add/override property logic for any control in the system. When set in the system, it allows the application to logically request methods against the control that, in turn, will be performed by the related Object ID. It will also first check the object for any property requests and, if the property is defined in the object, set or get that property instead of the controls. To allow the specified object to get true access to the control, while executing within the object identified by the 'ObjectID property, the system will direct any property requests directly to the control. Note: | ||||||||||||||||||||||
On Focus CTL event. 0 is returned if no On Focus CTL value is set up for the control. | ||||||||||||||||||||||
This property controls the CTL event that will be fired prior to the system displaying the Tip for any control. If the value of this property is non-zero, the system will use its value of a CTL event to fire and will defer the display of the tip until the application changes the value in 'Tip$. If the value in 'Tip$ is not changed, no tip will be displayed. Setting this to zero (Default) disables the event from being sent and the current 'Tip$ will be displayed. | ||||||||||||||||||||||
Parent window handle. | ||||||||||||||||||||||
Color of the radio button frame. Applies only to radio buttons that look like radio buttons (no bitmap defined), not for radio buttons that look like normal buttons. (The RbFrameColor$ property was added in PxPlus 2024.) | ||||||||||||||||||||||
Color of the hover circle in the radio button when the mouse is over the control. Applies only to radio buttons that look like radio buttons (no bitmap defined), not for radio buttons that look like normal buttons. (The RbHoverColor$ property was added in PxPlus 2024.) | ||||||||||||||||||||||
Color of the circle in the radio button. Applies only to radio buttons that look like radio buttons (no bitmap defined), not for radio buttons that look like normal buttons. (The RbMarkColor$ property was added in PxPlus 2024.) | ||||||||||||||||||||||
Signal only - do not get focus: 0 = Off; 1 = On. (Default: 0) This property can also be read, returning 1 or 0 to indicate if the control is to signal only and not get focus. | ||||||||||||||||||||||
Controls the translation of the values selected in a control and how the value will be passed to/from the application. Generally, it contains a table of single-character values representing selections from the controls with each character representing each of the values in the control in sequence. The size of each entry can be changed using the 'TblWidth property. | ||||||||||||||||||||||
Text of item or label. | ||||||||||||||||||||||
Foreground text color. For information on valid color names and color specifications, see Color Properties. (Default: "DEFAULT") | ||||||||||||||||||||||
Tip message for control. | ||||||||||||||||||||||
Top of control in pixels. | ||||||||||||||||||||||
Underline button text. | ||||||||||||||||||||||
Current item value. | ||||||||||||||||||||||
Control visible flag: 1 = Yes; 0 = No (Default: 1) | ||||||||||||||||||||||
Width of control in pixels. | ||||||||||||||||||||||
Controls the list of properties to be returned in '_PropValues$. Each value is separated by the value in '_PropSep$. This property can be used to speed up the processing of multiple property accesses but reducing the number of interactions with the control. See Multi-Property Access. | ||||||||||||||||||||||
Controls the separator used between each of the values of the properties returned in '_PropValues$ as defined by '_PropList$. This property can be used to speed up the processing of multiple property accesses but reducing the number of interactions with the control. See Multi-Property Access. | ||||||||||||||||||||||
Accesses the values of the properties defined in '_PropList$. Each value is separated by the value in '_PropSep$. This property can be used to speed up the processing of multiple property accesses but reducing the number of interactions with the control. See Multi-Property Access. |
Color Properties
'COLOUR' & '_COLOUR' Mnemonic
Using Property Names
Compound Properties