ctrlStyle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|=GROUP1" to "|GROUP1=")
m (Text replacement - "{{HashLink" to "{{Link")
 
(18 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


|game1= arma3dev |Game name=
|game1= arma3
|version1= 2.02


|version= 2.01 |Game version=
|arg= local


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


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


|s1= [[ctrlStyle]] control


|arg=  |Multiplayer Arguments ("local" or "global")=
|p1= control: [[Control]]


|eff= |Multiplayer Effects ("local" or "global")=
|r1= [[Number]] - see {{Link|Arma: GUI Configuration#Control Styles}}


|serverExec= |Multiplayer Execution ("server" or empty)=
|x1= <sqf>
private _ctrlStyle = ctrlStyle _myControl;


|gr1= GUI Control|GROUP1=
private _bitFlags = _ctrlStyle call BIS_fnc_bitflagsToArray;
____________________________________________________________________________________________
if (2 in _bitFlags) then
 
|descr= Returns the provided control's style. See {{HashLink|Arma: GUI Configuration#Control Styles}}. |Description=
 
|mp= |Multiplayer Behaviour=
 
|pr= |Problems=
____________________________________________________________________________________________
 
|s1= [[ctrlStyle]] control |Syntax=
 
|p1= control |Parameter 1=
 
|r1= [[Number]] - see {{HashLink|Arma: GUI Configuration#Control Styles}} |Return Value=
____________________________________________________________________________________________
 
|x1= <code>[[private]] _ctrlStyle = [[ctrlStyle]] _myControl;
 
[[private]] _bitFlags = _ctrlStyle [[call]] [[BIS_fnc_bitflagsToArray]];
[[if]] (2 [[in]] _bitFlags) [[then]]
{
{
[[hint]] "This control has centered text!";
hint "This control has centered text!";
};
};
</code> |Example 1=
</sqf>
____________________________________________________________________________________________


|seealso= [[ctrlType]] [[BIS_fnc_bitflagsToArray]] |See Also=
|seealso= [[ctrlType]] [[BIS_fnc_bitflagsToArray]]
}}
}}
<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- END Note Section -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Command Group: GUI Control]]

Latest revision as of 17:44, 4 January 2023

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