ctrlSetFocus: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<dl class="command_description"> <dt></dt>" to "<dl class="command_description"> <dt></dt>")
m (Text replacement - " \| *s([0-9]) *= ([^ ]+)? ?'''([a-zA-Z0-9_]+)''' ?([^ ]+)? " to " |s$1= $2 $3 $4 ")
Line 20: Line 20:
|descr= Sets the input focus on given control.
|descr= Sets the input focus on given control.


|s1= '''ctrlSetFocus''' control
|s1= [[ctrlSetFocus]]  control


|p1=  control: [[Control]]
|p1=  control: [[Control]]

Revision as of 17:41, 12 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.