ctrlSetFocus: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (template:command argument fix)
(13 intermediate revisions by 8 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|CTRLSETFOCUS]]
{{Command|= Comments
[[Category:Scripting Commands ArmA|CTRLSETFOCUS]]
____________________________________________________________________________________________


| arma |= Game name


<h2 style="color:#000066">''''' ctrlSetFocus ''control'''''</h2>
|1.00|= Game version
____________________________________________________________________________________________


| Set the input focus on given control. |DESCRIPTION=
____________________________________________________________________________________________


'''Operand types:'''
| '''ctrlSetFocus''' controlName|SYNTAX=


'''control'''': [[Control]]
|p1=  controlName: [[Control]] |PARAMETER1=


| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
 
|x1= <pre>ctrlSetFocus _control</pre> |EXAMPLE1=
____________________________________________________________________________________________


'''Type of returned value:'''
|  |SEEALSO=


[[Nothing]]
}}


'''Compatibility:'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


Version 2.50 required.
<!-- Note Section END -->
</dl>


'''Description:'''
<h3 style="display:none">Bottom Section</h3>


Set the input focus on given control.
[[Category:Scripting Commands|CTRLSETFOCUS]]
[[Category:Scripting Commands ArmA|CTRLSETFOCUS]]
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]


'''Example''':
<!-- CONTINUE Notes -->
   
<dl class="command_description">
'''ctrlSetFocus''' _control
<dd class="notedate">Posted on June 30, 2017 - 09:54 (UTC)</dd>
<dt class="note">[[User:IT07|IT07]]</dt>
<dd class="note">
This command seems to only work on controls that accept any input from keyboard or mouse.
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 15:36, 7 April 2019

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Set the input focus on given control.
Groups:
Uncategorised

Syntax

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

Examples

Example 1:
ctrlSetFocus _control

Additional Information

See also:
See also needed

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

Posted on June 30, 2017 - 09:54 (UTC)
IT07
This command seems to only work on controls that accept any input from keyboard or mouse.