Arma 3 Scripting

Command in GUI Control

ctrlClassName

Also available as Markdown and JSON, or read the original wiki page.

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"

Syntax

ctrlClassName control

Parameters:

Returns: 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);

See also

ctrlIDC · ctrlIDD · ctrlType · ctrlCreate · ctrlDelete · ctrlModel · ctrlSetModel · ctrlPosition · ctrlSetPosition · ctrlModelScale · ctrlSetModelScale · ctrlModelDirAndUp · ctrlSetModelDirAndUp