ctrlActivate: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)\]\]" to "{{GameCategory|arma2|Scripting Commands}}")
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 01:23, 17 January 2021

Hover & click on the images for description

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

Syntax:
ctrlActivate controlName
Parameters:
controlName: Control
Return Value:
Nothing

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

Notes

Bottom Section