ctrlClassName: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|( *\[\[[a-zA-Z]+\]\]) - ([a-z -]+) \|x1=" to "|r1=$1 - $2 |x1=") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(30 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma3 | |game1= arma3 | ||
|version1= 1.26 | |||
|1.26 | |||
|gr1= GUI Control | |gr1= GUI Control | ||
| 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: | |descr= 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: | ||
< | <sqf>_className = findDisplay 12 getVariable ["BIS_fnc_initDisplay_configClass", ""]; // "RscDiary"</sqf> | ||
| | |s1= [[ctrlClassName]] control | ||
|p1= control : [[Control]] | |p1= control : [[Control]] | ||
Line 16: | Line 15: | ||
|r1= [[String]] - class name | |r1= [[String]] - class name | ||
|x1= List class names of all controls present on display 46:< | |x1= List class names of all controls present on display 46: | ||
<sqf> | |||
_return = []; | |||
{ | { | ||
_return | _return pushBack format ["IDC: %1, className: %2", ctrlIDC _x, ctrlClassName _x]; | ||
} | } forEach (allControls findDisplay 46); | ||
copyToClipboard (_return joinString endl); | |||
</sqf> | |||
|seealso= [[ctrlIDC]] | |seealso= [[ctrlIDC]] [[ctrlIDD]] [[ctrlType]] [[ctrlCreate]] [[ctrlDelete]] [[ctrlModel]] [[ctrlSetModel]] [[ctrlPosition]] [[ctrlSetPosition]] [[ctrlModelScale]] [[ctrlSetModelScale]] [[ctrlModelDirAndUp]] [[ctrlSetModelDirAndUp]] | ||
}} | }} |
Latest revision as of 12:30, 13 May 2022
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:
- Groups:
- GUI Control
Syntax
- Syntax:
- ctrlClassName control
- Parameters:
- control : Control
- Return Value:
- String - class name
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:
- ctrlIDC ctrlIDD ctrlType ctrlCreate ctrlDelete ctrlModel ctrlSetModel ctrlPosition ctrlSetPosition ctrlModelScale ctrlSetModelScale ctrlModelDirAndUp ctrlSetModelDirAndUp
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