ON EVENT: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
MikeO (talk | contribs)
No edit summary
ConnerO (talk | contribs)
No edit summary
Line 2: Line 2:


{{Command|syntax=ON_EVENT <control to check>, <control to change>, <new state>
{{Command|syntax=ON_EVENT <control to check>, <control to change>, <new state>
|description=Change the state of a dialog control, based on the current state of another control.<br>
|description=:Change the state of a dialog control, based on the current state of another control.<br>
:For example, disable an input box when a checkbox is unchecked.
:For example, disable an input box when a checkbox is unchecked.



Revision as of 14:58, 19 August 2010

Up

Command

ON_EVENT <control to check>, <control to change>, <new state>


Change the state of a dialog control, based on the current state of another control.
For example, disable an input box when a checkbox is unchecked.

Parameters

<control to check>
The name of the {CONTROL} to check.
<control to change>
Name of the control to change the state of.
<new state>
The state must be one of SHOW, HIDE, ENABLE or DISABLE.

Example

ON_EVENT CHECK3, INPUT4, DISABLE
This will enable the 4th input box when the third checkbox is checked.
The opposite also applies, the input box will be disabled when it is unchecked.