{"name":"ctrlTextHeight","title":"ctrlTextHeight","type":"command","url":"https://community.bistudio.com/wiki/ctrlTextHeight","revid":377912,"updated":"2026-01-09T17:38:24Z","groups":["GUI Control"],"status":"ok","games":{"arma3":"0.50"},"since":"arma3 0.50","arma3_since":"0.50","description":"Returns the text control's height. Supported control types:\n\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","params":[{"name":"control","type":"Control","type_expr":"Control"}],"returns":{"type":"Number","type_expr":"Number"},"form":"unary","right":{"text":"control"}}],"examples":[{"code":["_h = ctrlTextHeight _ctrl;"]}],"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."}]}