focusedCtrl: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 6: | Line 6: | ||
|gr1= GUI Control | |gr1= GUI Control | ||
|descr= Returns | |descr= Returns display's focused control. | ||
|s1= [[focusedCtrl]] display | |s1= [[focusedCtrl]] display | ||
Line 14: | Line 14: | ||
|r1= [[Control]] - Control which has focus | |r1= [[Control]] - Control which has focus | ||
|x1= < | |x1= <sqf>private _focusedCtrl = focusedCtrl findDisplay 12;</sqf> | ||
|x2= < | |x2= <sqf>private _isFocused = focusedCtrl _display == _ctrl;</sqf> | ||
|x3= < | |x3= <sqf>private _isFocused = focusedCtrl (ctrlParent _ctrl) == _ctrl;</sqf> | ||
|seealso= [[ctrlSetFocus]] [[displayParent]] [[ctrlParent]] | |seealso= [[ctrlSetFocus]] [[displayParent]] [[ctrlParent]] | ||
}} | }} |
Revision as of 17:27, 5 May 2022
Description
- Description:
- Returns display's focused control.
- Groups:
- GUI Control
Syntax
- Syntax:
- focusedCtrl display
- Parameters:
- display: Display - Parent display
- Return Value:
- Control - Control which has focus
Examples
- Example 1:
- Example 2:
- Example 3:
Additional Information
- See also:
- ctrlSetFocus displayParent ctrlParent
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