ctrlSetFontHeight: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "|size=0.8" to "|size= 0.75")
 
(45 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma |= Game name
|game1= arma1
|version1= 1.00


|1.00|= Game version
|game2= arma2
____________________________________________________________________________________________
|version2= 1.00


| Sets the font size of given control. |= Description
|game3= arma2oa
____________________________________________________________________________________________
|version3= 1.50


| controlName '''ctrlSetFontHeight''' height
|game4= tkoh
|version4= 1.00


|p1= controlName: [[Control]] |= Parameter 1
|game5= arma3
|version5= 0.50


|p2= height: [[Number]] |= Parameter 2
|gr1= GUI Control - HTML


| [[Nothing]] |= Return value
|descr= Sets the {{hl|sizeEx}} property for most controls as follows:
____________________________________________________________________________________________
* {{hl|CT_MAP}} - "sizeExNames"
 
* {{hl|CT_HTML}} - "P" >> "sizeEx"
|x1= <pre>_control ctrlSetFontHeight 0.05</pre> |= Example 1
* Other - "sizeEx"
____________________________________________________________________________________________
* {{GVI|arma3|2.02|size= 0.75}} {{hl|CT_STRUCTURED_TEXT}} - "size"


|= See also
|s1= control [[ctrlSetFontHeight]] size


}}
|p1= control: [[Control]]


<h3 style="display:none">Notes</h3>
|p2= size: [[Number]]
<dl class="command_description">
|r1= [[Nothing]]
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x1= <sqf>_control ctrlSetFontHeight 0.05;</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[ctrlFontHeight]] [[Arma: GUI Configuration]]
 
}}
[[Category:Scripting Commands|CTRLSETFONTHEIGHT]]
[[Category:Scripting Commands ArmA|CTRLSETFONTHEIGHT]]
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]

Latest revision as of 13:10, 21 December 2022

Hover & click on the images for description

Description

Description:
Sets the sizeEx property for most controls as follows:
  • CT_MAP - "sizeExNames"
  • CT_HTML - "P" >> "sizeEx"
  • Other - "sizeEx"
  • Arma 3 logo black.png2.02 CT_STRUCTURED_TEXT - "size"
Groups:
GUI Control - HTML

Syntax

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

Examples

Example 1:
_control ctrlSetFontHeight 0.05;

Additional Information

See also:
ctrlFontHeight Arma: GUI Configuration

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