ctrlSetFocus: Difference between revisions
Jump to navigation
Jump to search
m (formatting) |
Lou Montana (talk | contribs) m (Text replacement - "Nelis.75733126" to "Nelis75733126") |
||
(12 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
|game1= arma1 | |game1= arma1 | ||
|version1= 1.00 | |version1= 1.00 | ||
|game2= arma2 | |game2= arma2 | ||
|version2= 1.00 | |version2= 1.00 | ||
|game3= arma2oa | |game3= arma2oa | ||
|version3= 1.50 | |||
|version3= 1. | |||
|game4= tkoh | |game4= tkoh | ||
|version4= 1.00 | |version4= 1.00 | ||
|game5= arma3 | |game5= arma3 | ||
|version5= 0.50 | |version5= 0.50 | ||
Line 25: | Line 20: | ||
|descr= Sets the input focus on given control. | |descr= Sets the input focus on given control. | ||
|s1= | |s1= [[ctrlSetFocus]] control | ||
|p1= | |p1= control: [[Control]] | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>ctrlSetFocus _control;</sqf> | ||
|seealso= [[focusedCtrl]] | |seealso= [[focusedCtrl]] | ||
Line 37: | Line 32: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<dt></dt> | <dt></dt> | ||
<dd class="notedate">Posted on | <dd class="notedate">Posted on 2017-06-30 - 09:54 (UTC)</dd> | ||
<dt class="note">[[User: | <dt class="note">[[User:Nelis75733126|Nelis75733126]]</dt> | ||
<dd class="note"> | <dd class="note"> | ||
* [[ctrlSetFocus]] seems to only work on controls that accept any input from keyboard or mouse. | |||
* if [[ctrlSetFocus]] is used on a ControlsGroup that contains an interactable control, that control will automatically be active. | |||
* if [[ctrlSetFocus]] is used on a ControlsGroup in which there are no interactable controls, then [[ctrlSetFocus]] will do nothing. | |||
</dd> | </dd> | ||
</dl> | </dl> |
Latest revision as of 15:38, 29 June 2024
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 2017-06-30 - 09:54 (UTC)
- Nelis75733126
-
- ctrlSetFocus seems to only work on controls that accept any input from keyboard or mouse.
- if ctrlSetFocus is used on a ControlsGroup that contains an interactable control, that control will automatically be active.
- if ctrlSetFocus is used on a ControlsGroup in which there are no interactable controls, then ctrlSetFocus will do nothing.
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: GUI Control