{"name":"ctrlShow","operator":null,"title":"ctrlShow","type":"command","url":"https://community.bistudio.com/wiki/ctrlShow","revid":370565,"updated":"2025-01-09T18:12:50Z","groups":["GUI Control"],"status":"ok","replaced_by":[],"games":[{"game":"ofp","name":"Operation Flashpoint","version":"1.75"},{"game":"ofpe","name":"Operation Flashpoint: Elite","version":"1.00"},{"game":"arma1","name":"Armed Assault","version":"1.00"},{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"ofp","name":"Operation Flashpoint","version":"1.75"},"arma3_since":"0.50","branch":null,"locality":{"argument":"local","effect":"local","server_exec":false},"exec":null,"description":"Shows or hides a control, or group of controls together with all the controls inside that group of controls.\n\nRead Arma: GUI Configuration for more information about user dialogs and controls.\n\n> [!NOTE]\n> Using ctrlShow on a controls group will show or hide all controls within the controls group (including controls that are placed in nested controls groups).","syntaxes":[{"syntax":"ctrlShow [idc, show]","since":null,"effect":null,"exec":null,"params":[{"name":"idc","type":"Number","optional":false,"default":null,"description":"control IDC","types":["Number"],"since":null,"text":"idc: Number - control IDC"},{"name":"show","type":"Boolean","optional":false,"default":null,"description":"true to show the control, false to hide it","types":["Boolean"],"since":null,"text":"show: Boolean - true to show the control, false to hide it"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"unary","operator":null,"left":null,"right":{"text":"[idc, show]","types":["Array"]}},{"syntax":"control ctrlShow show","since":null,"effect":null,"exec":null,"params":[{"name":"control","type":"Control","optional":false,"default":null,"description":null,"types":["Control"],"since":null,"text":"control: Control"},{"name":"show","type":"Boolean","optional":false,"default":null,"description":"true to show the control, false to hide it","types":["Boolean"],"since":null,"text":"show: Boolean - true to show the control, false to hide it"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"control","types":["Control"]},"right":{"text":"show","types":["Boolean"]}}],"examples":[{"text":"```sqf\nctrlShow [100, false];\n```","code":["ctrlShow [100, false];"]},{"text":"```sqf\n_control ctrlShow false;\n```","code":["_control ctrlShow false;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["ctrlVisible","ctrlShown","ctrlEnable"],"notes":[],"categories":[]}