ctrlClassName: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{GameCategory\|(arma[0123])\|New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 7: Line 6:


|gr1= GUI Control |GROUP1=
|gr1= GUI Control |GROUP1=
____________________________________________________________________________________________


| 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:
| 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:
<code>_className <nowiki>=</nowiki> [[findDisplay]] 12 [[getVariable]] ["BIS_fnc_initDisplay_configClass", ""]; // "RscDiary"</code> |DESCRIPTION=
<code>_className <nowiki>=</nowiki> [[findDisplay]] 12 [[getVariable]] ["BIS_fnc_initDisplay_configClass", ""]; // "RscDiary"</code> |DESCRIPTION=
____________________________________________________________________________________________


| '''ctrlClassName''' control |SYNTAX=
| '''ctrlClassName''' control |SYNTAX=
Line 25: Line 22:
} [[forEach]] ([[allControls]] ([[findDisplay]] 46));
} [[forEach]] ([[allControls]] ([[findDisplay]] 46));
[[copyToClipboard]] (_return [[joinString]] [[endl]]);</code>|EXAMPLE1=
[[copyToClipboard]] (_return [[joinString]] [[endl]]);</code>|EXAMPLE1=
____________________________________________________________________________________________


| [[ctrlIDC]], [[ctrlIDD]], [[ctrlType]], [[ctrlCreate]], [[ctrlDelete]], [[ctrlModel]], [[ctrlSetModel]], [[ctrlPosition]], [[ctrlSetPosition]], [[ctrlModelScale]], [[ctrlSetModelScale]], [[ctrlModelDirAndUp]], [[ctrlSetModelDirAndUp]]  |SEEALSO=  
| [[ctrlIDC]], [[ctrlIDD]], [[ctrlType]], [[ctrlCreate]], [[ctrlDelete]], [[ctrlModel]], [[ctrlSetModel]], [[ctrlPosition]], [[ctrlSetPosition]], [[ctrlModelScale]], [[ctrlSetModelScale]], [[ctrlModelDirAndUp]], [[ctrlSetModelDirAndUp]]  |SEEALSO=  


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
}}
}}



Revision as of 01:32, 17 January 2021

Hover & click on the images for description

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

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:
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

Notes

Bottom Section