ctrlTextHeight: Difference between revisions

From Bohemia Interactive Community
m (arma3 category)
m (Some wiki formatting)
 
(49 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 0.50


|0.50|= Game version
|gr1= GUI Control
____________________________________________________________________________________________


| Returns the text height. |= Description
|descr= Returns the text control's height. Supported control [[ctrlType|types]]:
____________________________________________________________________________________________
{{Columns|3|
* [[CT_STATIC]]
* [[CT_STRUCTURED_TEXT]]
* [[CT_EDIT]]
* {{GVI|arma3|2.06|size= 0.75}} [[CT_XKEYDESC]]
* {{GVI|arma3|2.06|size= 0.75}} [[CT_XBUTTON]]
* {{GVI|arma3|2.06|size= 0.75}} [[CT_SHORTCUTBUTTON]]
* {{GVI|arma3|2.06|size= 0.75}} [[CT_BUTTON]]
* {{GVI|arma3|2.06|size= 0.75}} [[CT_ACTIVETEXT]]
}}


| '''ctrlTextHeight''' structuredTextControl |= Syntax
|s1= [[ctrlTextHeight]]  control


|p1= structuredTextControl: [[Control]] |= PARAMETER1
|p1= control: [[Control]]


| [[Number]] |= RETURNVALUE
|r1= [[Number]]


|x1= <sqf>_h = ctrlTextHeight _ctrl;</sqf>


|x1= <code>
|seealso= [[ctrlFontHeight]] [[ctrlTextWidth]] [[ctrlSetText]] [[ctrlType]] [[Arma: GUI Configuration]]
</code>|= EXAMPLE1
}}
 
____________________________________________________________________________________________


| |= SEEALSO
{{Note
 
|user= Nelis75733126
| |= MPBEHAVIOUR
|timestamp= 20170524213400
____________________________________________________________________________________________
|text= In {{arma3}} v1.70, this command always returns 0 if the definition for width of the control ( inside .hpp or .cpp file ) is missing.
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Arma 3: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]

Latest revision as of 18:38, 9 January 2026

Hover & click on the images for description

Description

Description:
Returns the text control's height. Supported control types:
Groups:
GUI Control

Syntax

Syntax:
ctrlTextHeight control
Parameters:
control: Control
Return Value:
Number

Examples

Example 1:
_h = ctrlTextHeight _ctrl;

Additional Information

See also:
ctrlFontHeight ctrlTextWidth ctrlSetText ctrlType Arma: GUI Configuration

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note
Nelis75733126 - c
Posted on May 24, 2017 - 21:34 (UTC)
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.