ctrlStyle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command
{{Command


|game1= arma3dev |Game name=
|game1= arma3dev


|version= 2.01 |Game version=
|version= 2.01


|arg=  |Multiplayer Arguments ("local" or "global")=
|arg=


|eff=  |Multiplayer Effects ("local" or "global")=
|eff=


|serverExec=  |Multiplayer Execution ("server" or empty)=
|serverExec=


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


|descr= Returns the provided control's style. See {{HashLink|Arma: GUI Configuration#Control Styles}}. |Description=
|descr= Returns the provided control's style. See {{HashLink|Arma: GUI Configuration#Control Styles}}.


|mp= |Multiplayer Behaviour=
|mp= |Multiplayer Behaviour=
Line 19: Line 19:
|pr= |Problems=
|pr= |Problems=


|s1= [[ctrlStyle]] control |Syntax=
|s1= [[ctrlStyle]] control


|p1= control |Parameter 1=
|p1= control


|r1= [[Number]] - see {{HashLink|Arma: GUI Configuration#Control Styles}} |Return Value=
|r1= [[Number]] - see {{HashLink|Arma: GUI Configuration#Control Styles}}


|x1= <code>[[private]] _ctrlStyle = [[ctrlStyle]] _myControl;
|x1= <code>[[private]] _ctrlStyle = [[ctrlStyle]] _myControl;
Line 32: Line 32:
[[hint]] "This control has centered text!";
[[hint]] "This control has centered text!";
};
};
</code> |Example 1=
</code>


|seealso= [[ctrlType]] [[BIS_fnc_bitflagsToArray]] |See Also=
|seealso= [[ctrlType]] [[BIS_fnc_bitflagsToArray]]
}}
}}



Revision as of 01:27, 18 January 2021

-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version |?]]
Hover & click on the images for description

Description

Description:
Returns the provided control's style. See Arma: GUI Configuration - Control Styles.
Groups:
GUI Control

Syntax

Syntax:
ctrlStyle control
Parameters:
control
Return Value:
Number - see Arma: GUI Configuration - Control Styles

Examples

Example 1:
private _ctrlStyle = ctrlStyle _myControl; private _bitFlags = _ctrlStyle call BIS_fnc_bitflagsToArray; if (2 in _bitFlags) then { hint "This control has centered text!"; };

Additional Information

See also:
ctrlType BIS_fnc_bitflagsToArray

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

[[Category:Introduced with arma3dev version ]][[ Category: arma3dev: New Scripting Commands | CTRLSTYLE]][[ Category: arma3dev: Scripting Commands | CTRLSTYLE]]

Bottom Section