{"name":"ctrlParentControlsGroup","operator":null,"title":"ctrlParentControlsGroup","type":"command","url":"https://community.bistudio.com/wiki/ctrlParentControlsGroup","revid":369358,"updated":"2024-09-03T18:43:05Z","groups":["GUI Control"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.58"}],"since":{"game":"arma3","name":"Arma 3","version":"1.58"},"arma3_since":"1.58","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns the parent control of a given child control. If the control is not part of a CT_CONTROLS_GROUP control then controlNull is returned. To return parent Display of the control use ctrlParent.","syntaxes":[{"syntax":"ctrlParentControlsGroup ctrl","since":null,"effect":null,"exec":null,"params":[{"name":"ctrl","type":"Control","optional":false,"default":null,"description":"child control","types":["Control"],"since":null,"text":"ctrl: Control - child control"}],"returns":{"type":"Control","types":["Control"],"description":null,"text":"Control"},"form":"unary","operator":null,"left":null,"right":{"text":"ctrl","types":["Control"]}}],"examples":[{"text":"```sqf\n_ctrlCombo = _ctrl controlsGroupCtrl 100; // control\nctrlParentControlsGroup _ctrlCombo; // parent control group (_ctrl)\n```","code":["_ctrlCombo = _ctrl controlsGroupCtrl 100; // control\nctrlParentControlsGroup _ctrlCombo; // parent control group (_ctrl)"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["controlsGroupCtrl","ctrlParent","displayParent","allControls","allDisplays"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: GUI Control","Introduced with Arma 3 version 1.58","Scripting Commands"]}