ctrlSetFocus: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|game([0-9]) ?= (.+) \|version([0-9]) ?= (.+) " to "|game$1= $2 |version$3= $4 ")
m (Text replacement - " " to " ")
Line 25: Line 25:


|r1= [[Nothing]]
|r1= [[Nothing]]
 
 
|x1= <code>[[ctrlSetFocus]] _control;</code>
|x1= <code>[[ctrlSetFocus]] _control;</code>



Revision as of 20:54, 10 June 2021

Hover & click on the images for description

Description

Description:
Sets the input focus on given control.
Groups:
GUI Control

Syntax

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

Examples

Example 1:
ctrlSetFocus _control;

Additional Information

See also:
focusedCtrl

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
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.