ON DROPDOWN: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[:Category:Dialog|{{Up}}]] | [[:Category:Dialog|{{Up}}]] | ||
{{Command|syntax=ON_DROPDOWN <dropdown number>, <index>, <control to change>, < | {{Command|syntax=ON_DROPDOWN <dropdown number>, <index>, <control to change>, <new state> | ||
|description= | |description=:Change the state of a dialog control, based on the current index of a dropdown menu. | ||
|param1=<dropdown number>|param1_desc= | |param1=<dropdown number>|param1_desc=Dropdown menu number | ||
|param2=<index>|param2_desc= | |param2=<index>|param2_desc=The index to the dropdown menu, 1 for the 1st item, 2 for the 2nd. | ||
|param3=<control to change>|param3_desc={{control to change}} | |param3=<control to change>|param3_desc={{control to change}} | ||
|param4=< | |param4=<new state>|param3_desc=The state must be one of SHOW, HIDE, ENABLE or DISABLE. | ||
}} | }} | ||
===Example=== | ===Example=== | ||
:ON_DROPDOWN | :ON_DROPDOWN 2, 5, INPUT4, DISABLE | ||
<br> | |||
:This will enable the 4th input box when the 5th item on the 2nd dropdown menu is selected. | |||
:The opposite also applies, the input box will be disabled when any other item on the dropdown is selected. | |||
[[Category:Dialog]] | [[Category:Dialog]] |
Latest revision as of 15:22, 17 January 2011
Command
- ON_DROPDOWN <dropdown number>, <index>, <control to change>, <new state>
- Change the state of a dialog control, based on the current index of a dropdown menu.
Parameters
- <dropdown number>
- Dropdown menu number
- <index>
- The index to the dropdown menu, 1 for the 1st item, 2 for the 2nd.
- <control to change>
- The state must be one of SHOW, HIDE, ENABLE or DISABLE.
- <new state>
Example
- ON_DROPDOWN 2, 5, INPUT4, DISABLE
- This will enable the 4th input box when the 5th item on the 2nd dropdown menu is selected.
- The opposite also applies, the input box will be disabled when any other item on the dropdown is selected.