ctrlActivate: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)\]\]" to "{{GameCategory|arma2|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma1 |Game name= | | arma1 |Game name= | ||
Line 7: | Line 6: | ||
|gr1= GUI Control |GROUP1= | |gr1= GUI Control |GROUP1= | ||
| Launch actions attached to given (button based) control. <br> | | Launch actions attached to given (button based) control. <br> | ||
Line 13: | Line 11: | ||
Command ignores control disabled state. (Example 2) | Command ignores control disabled state. (Example 2) | ||
|DESCRIPTION= | |DESCRIPTION= | ||
| '''ctrlActivate''' controlName|SYNTAX= | | '''ctrlActivate''' controlName|SYNTAX= | ||
Line 20: | Line 17: | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
|x1= <code>[[ctrlActivate]] _control</code> |EXAMPLE1= | |x1= <code>[[ctrlActivate]] _control</code> |EXAMPLE1= | ||
Line 26: | Line 22: | ||
[[ctrlActivate]] _control; // Action fired. | [[ctrlActivate]] _control; // Action fired. | ||
</code> |EXAMPLE2= | </code> |EXAMPLE2= | ||
| [[allControls]], [[allDisplays]], [[controlsGroupCtrl]], [[ctrlDelete]], [[ctrlModel]], [[ctrlSetModel]], [[ctrlPosition]], [[ctrlSetPosition]], [[ctrlClassName]], [[ctrlModelScale]], [[ctrlSetModelScale]], [[ctrlModelDirAndUp]], [[ctrlSetModelDirAndUp]], [[displayParent]] |SEEALSO= | | [[allControls]], [[allDisplays]], [[controlsGroupCtrl]], [[ctrlDelete]], [[ctrlModel]], [[ctrlSetModel]], [[ctrlPosition]], [[ctrlSetPosition]], [[ctrlClassName]], [[ctrlModelScale]], [[ctrlSetModelScale]], [[ctrlModelDirAndUp]], [[ctrlSetModelDirAndUp]], [[displayParent]] |SEEALSO= |
Revision as of 00:23, 17 January 2021
Description
- Description:
- Launch actions attached to given (button based) control.
Command only triggers action entry described in control config and engine-based actions (cancel or ok codes) and will not trigger button related User Interface Event Handlers.
Command ignores control disabled state. (Example 2) - Groups:
- GUI Control
Syntax
Examples
- Example 1:
ctrlActivate _control
- Example 2:
_control ctrlEnable false; ctrlActivate _control; // Action fired.
Additional Information
- See also:
- allControlsallDisplayscontrolsGroupCtrlctrlDeletectrlModelctrlSetModelctrlPositionctrlSetPositionctrlClassNamectrlModelScalectrlSetModelScalectrlModelDirAndUpctrlSetModelDirAndUpdisplayParent
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note