ctrlClassName: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *arma3 * * *\| *([0-2]\.[0-9]{2}) * " to "|game1= arma3 |version1= $1 ") |
Lou Montana (talk | contribs) m (Text replacement - "\|s1= +" to "|s1= ") |
||
Line 9: | Line 9: | ||
<code>_className <nowiki>=</nowiki> [[findDisplay]] 12 [[getVariable]] ["BIS_fnc_initDisplay_configClass", ""]; // "RscDiary"</code> | <code>_className <nowiki>=</nowiki> [[findDisplay]] 12 [[getVariable]] ["BIS_fnc_initDisplay_configClass", ""]; // "RscDiary"</code> | ||
|s1= | |s1= '''ctrlClassName''' control | ||
|p1= control : [[Control]] | |p1= control : [[Control]] |
Revision as of 15:41, 19 June 2021
Description
- Description:
- Returns the class name of a Control as it is defined in config. If you need config class of a game created Display, it is stored on display itself:
_className = findDisplay 12 getVariable ["BIS_fnc_initDisplay_configClass", ""]; // "RscDiary"
- Groups:
- GUI Control
Syntax
Examples
- Example 1:
- List class names of all controls present on display 46:
_return = [] ; { _return pushBack format ["IDC: %1, className: %2", ctrlIDC _x, ctrlClassName _x]; } forEach (allControls (findDisplay 46)); copyToClipboard (_return joinString endl);
Additional Information
- See also:
- ctrlIDCctrlIDDctrlTypectrlCreatectrlDeletectrlModelctrlSetModelctrlPositionctrlSetPositionctrlModelScalectrlSetModelScalectrlModelDirAndUpctrlSetModelDirAndUp
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