BIS fnc ctrlFitToTextHeight: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| *(\[\[[a-zA-Z ]+\]\].+) \|x1=" to " |r1=$1 |x1=")
m (Text replacement - " \| *(\[[a-zA-Z,. ]*\] call ('''|\[\[)?BI(N|S)_fnc_[a-zA-Z]+('''|\]\])?) * \|p1=" to " |s1=$1 |p1=")
Line 9: Line 9:
| Resize structured text control to fit its text height.
| Resize structured text control to fit its text height.


| [control,offset,time] call [[BIS_fnc_ctrlFitToTextHeight]]
|s1=[control,offset,time] call [[BIS_fnc_ctrlFitToTextHeight]]


|p1= control: [[Control]] - The control which should be scaled
|p1= control: [[Control]] - The control which should be scaled

Revision as of 15:58, 12 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
GUI

Syntax

Syntax:
[control,offset,time] call BIS_fnc_ctrlFitToTextHeight
Parameters:
control: Control - The control which should be scaled
offset: Number - (Optional, default 0) Offset
time: Number - (Optional, default 0) Commit time
Return Value:
Number - Text height

Examples

Example 1:
_height = [_ctrl, 1.5, 3] call BIS_fnc_ctrlFitToTextHeight;

Additional Information

See also:
ctrlCommittedctrlSetPositionctrlSetFade

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