{"name":"ctrlTextHeight","operator":null,"title":"ctrlTextHeight","type":"command","url":"https://community.bistudio.com/wiki/ctrlTextHeight","revid":377912,"updated":"2026-01-09T17:38:24Z","groups":["GUI Control"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma3","name":"Arma 3","version":"0.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns the text control's height. Supported control types:\n- CT_STATIC\n- CT_STRUCTURED_TEXT\n- CT_EDIT\n- Arma 3 v2.06 CT_XKEYDESC\n- Arma 3 v2.06 CT_XBUTTON\n- Arma 3 v2.06 CT_SHORTCUTBUTTON\n- Arma 3 v2.06 CT_BUTTON\n- Arma 3 v2.06 CT_ACTIVETEXT","syntaxes":[{"syntax":"ctrlTextHeight control","since":null,"effect":null,"exec":null,"params":[{"name":"control","type":"Control","optional":false,"default":null,"description":null,"types":["Control"],"since":null,"text":"control: Control"}],"returns":{"type":"Number","types":["Number"],"description":null,"text":"Number"},"form":"unary","operator":null,"left":null,"right":{"text":"control","types":["Control"]}}],"examples":[{"text":"```sqf\n_h = ctrlTextHeight _ctrl;\n```","code":["_h = ctrlTextHeight _ctrl;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["ctrlFontHeight","ctrlTextWidth","ctrlSetText","ctrlType","Arma: GUI Configuration"],"notes":[{"user":"Nelis75733126","date":"2017-05-24T21:34:00Z","text":"In Arma 3 v1.70, this command always returns 0 if the definition for width of the control ( inside .hpp or .cpp file ) is missing."}],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: GUI Control","Introduced with Arma 3 version 0.50","Scripting Commands"]}