ON RADIO: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
ConnerO (talk | contribs)
No edit summary
Mikeo (talk | contribs)
No edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 2: Line 2:


{{Command|syntax=ON_RADIO <radio number>, <value>, <control to change>, <change>
{{Command|syntax=ON_RADIO <radio number>, <value>, <control to change>, <change>
|description=*DESCRPTION*
|description=:Change the state of a dialog control, based on which button in a group of radio buttons is selected.


|param1=<radio number>|param1_desc={{radio number}}
|param1=<dropdown number>|param1_desc=Radio button group number
|param2=<value>|param2_desc={{value}}
|param2=<index>|param2_desc=Radio button group value
|param3=<control to change>|param3_desc={{control to change}}
|param3=<control to change>|param3_desc={{control to change}}
|param4=<change>|param4_desc={{change}}
|param4=<new state>|param3_desc=The state must be one of SHOW, HIDE, ENABLE or DISABLE.
}}
}}


===Example===
===Example===
:ON_RADIO
:ON_RADIO 2, 5, INPUT4, DISABLE
<br>
:This will enable the 4th input box when the 5th button in radio group 2 is selected.
:The opposite also applies, the input box will be disabled when any other button in the radio group is selected.
<br>
:For an example macro see [[GetCommands.dlg]]
:For an example macro see [[GetCommands.dlg]]
[[Category:Dialog]]
[[Category:Dialog]]

Latest revision as of 15:23, 17 January 2011

Up

Command

ON_RADIO <radio number>, <value>, <control to change>, <change>


Change the state of a dialog control, based on which button in a group of radio buttons is selected.

Parameters

<dropdown number>
Radio button group number
<index>
Radio button group value
<control to change>
The state must be one of SHOW, HIDE, ENABLE or DISABLE.
<new state>

Example

ON_RADIO 2, 5, INPUT4, DISABLE


This will enable the 4th input box when the 5th button in radio group 2 is selected.
The opposite also applies, the input box will be disabled when any other button in the radio group is selected.


For an example macro see GetCommands.dlg