focusedCtrl: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (Created page with "{{RV|type=command | arma3dev |2.03 |gr1= GUI Control | Returns currently focused control. | '''focusedCtrl''' display |p1= display: Display - parent display | Co...") |
(named params and GameCategory) |
||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma3dev | |game1= arma3dev | ||
|2.03 | |version1= 2.03 | ||
|gr1= GUI Control | |gr1= GUI Control | ||
| Returns currently focused control. | |descr= Returns currently focused control. | ||
| | |s1= [[focusedCtrl]] display | ||
|p1= display: [[Display]] - parent display | |p1= display: [[Display]] - parent display | ||
| [[Control]] - control which has focus | |r1= [[Control]] - control which has focus | ||
|x1= <code>_focused = [[focusedCtrl]] [[findDisplay]] 12;</code> | |x1= <code>_focused = [[focusedCtrl]] [[findDisplay]] 12;</code> | ||
|x2= <code>_isFocused = [[focusedCtrl]] _display [[==]] _ctrl;</code> | |x2= <code>_isFocused = [[focusedCtrl]] _display [[==]] _ctrl;</code> | ||
| [[ctrlSetFocus]], [[displayParent]] | |seealso= [[ctrlSetFocus]], [[displayParent]] | ||
}} | }} | ||
Revision as of 14:26, 15 February 2021
Description
- Description:
- Returns currently focused control.
- Groups:
- GUI Control
Syntax
- Syntax:
- focusedCtrl display
- Parameters:
- display: Display - parent display
- Return Value:
- Control - control which has focus
Examples
- Example 1:
_focused = focusedCtrl findDisplay 12;
- Example 2:
_isFocused = focusedCtrl _display == _ctrl;
Additional Information
- See also:
- ctrlSetFocusdisplayParent
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
[[Category:Introduced with arma3dev version 2.03]][[ Category: arma3dev: New Scripting Commands | FOCUSEDCTRL]][[ Category: arma3dev: Scripting Commands | FOCUSEDCTRL]]