ProvideX V8.20 > Language Reference > 2. Directives
267
Format 6: Logical Push, Release
RADIO_BUTTON {ON | OFF} [*]ctl_id:sub_id[,ERR=stmtref]
Use the RADIO_BUTTON ON format as a logical Push to make it appear that the
radio button has been pressed. Use RADIO_BUTTON OFF to make it appear that the
radio button has been released.
Format 7: Read Activation Mode
RADIO_BUTTON READ [*]ctl_id,var,mode$[,ERR=stmtref]
The RADIO_BUTTON READ format returns the sub_id for the currently active radio
button in your numeric variable. (The value is zero if none are active.) ProvideX
returns a single-character hex value for the mode / keystroke the user chose to
activate the last radio button. Possible values returned in mode$ can include:
$01$ for MOUSE-CLICK.
$0D$ for Enter .
$20$ for SPACEBAR (and keyboard HotKey, as in the example below).
$00$ when the user exits the button control.
To determine which RADIO_BUTTON sub_id has been pressed and the mode used:
0100 RADIO_BUTTON READ 1000,which,how$
See Also
BUTTON Control Button, p.34,
CHECK_BOX Control Check Box, p.47,
TRISTATE_BOX Control Tristate Box, p.342,
Chapter 7. Control Object Properties, p.697.