ctrlSetFontHeight: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - "|size=0.8" to "|size= 0.75")
 
(36 intermediate revisions by 3 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 <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 have a getter counterpart either.|DESCRIPTION=
|game3= arma2oa
____________________________________________________________________________________________
|version3= 1.50


| control '''ctrlSetFontHeight''' size
|game4= tkoh
|version4= 1.00


|p1= control: [[Control]] |PARAMETER1=
|game5= arma3
|version5= 0.50


|p2= size: [[Number]] |PARAMETER2=
|gr1= GUI Control - HTML


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


| [[Dialog Control]] |SEEALSO=
|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}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 12: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