ctrlSetFontHeight: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(description)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Sets the font size of given control. |= Description
| Sets the <tt>sizeEx</tt> property for most controls but not all. [[CT_STRUCTURED_TEXT]] unfortunately is not supported as it operates on <tt>size</tt> property among other things. This setter command does not gave a getter counterpart either.|= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| controlName '''ctrlSetFontHeight''' height
| controlName '''ctrlSetFontHeight''' size


|p1= controlName: [[Control]] |= Parameter 1
|p1= control: [[Control]] |= Parameter 1


|p2= height: [[Number]] |= Parameter 2
|p2= size: [[Number]] |= Parameter 2


| [[Nothing]] |= Return value
| [[Nothing]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>_control ctrlSetFontHeight 0.05</pre> |= Example 1
|x1= <code>_control [[ctrlSetFontHeight]] 0.05;</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[Dialog Control]] |= See also


}}
}}

Revision as of 16:35, 3 September 2018

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Sets the sizeEx property for most controls but not all. CT_STRUCTURED_TEXT unfortunately is not supported as it operates on size property among other things. This setter command does not gave a getter counterpart either.
Groups:
Uncategorised

Syntax

Syntax:
controlName ctrlSetFontHeight size
Parameters:
control: Control
size: Number
Return Value:
Nothing

Examples

Example 1:
_control ctrlSetFontHeight 0.05;

Additional Information

See also:
Dialog Control

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section