{"name":"ctrlStyle","title":"ctrlStyle","type":"command","url":"https://community.bistudio.com/wiki/ctrlStyle","revid":336960,"updated":"2023-01-04T16:44:17Z","groups":["GUI Control"],"status":"ok","games":{"arma3":"2.02"},"since":"arma3 2.02","arma3_since":"2.02","locality":{"argument":"local"},"description":"Returns the provided control's style. See Arma: GUI Configuration - Control Styles.","syntaxes":[{"syntax":"ctrlStyle control","params":[{"name":"control","type":"Control","type_expr":"Control"}],"returns":{"type":"Number","type_expr":"Number","description":"see Arma: GUI Configuration - Control Styles"},"form":"unary","right":{"text":"control"}}],"examples":[{"text":"```sqf\nprivate _ctrlStyle = ctrlStyle _myControl;\n\nprivate _bitFlags = _ctrlStyle call BIS_fnc_bitflagsToArray;\nif (2 in _bitFlags) then\n{\n    hint \"This control has centered text!\";\n};\n```","code":["private _ctrlStyle = ctrlStyle _myControl;\n\nprivate _bitFlags = _ctrlStyle call BIS_fnc_bitflagsToArray;\nif (2 in _bitFlags) then\n{\n\thint \"This control has centered text!\";\n};"]}],"see_also":["ctrlType","BIS_fnc_bitflagsToArray"]}