Search the Community
Showing results for tags 'rscstructuredtext'.
Found 2 results
-
Vertical align RscStructuredText (using as title bar)
HazJ posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello, Looking for a way to correctly align the text when using RscStructuredText control type. The valign doesn't seem to have any effect. Using invisible gap as explained on Wiki doesn't work too well - isn't a reliable solution. https://community.bistudio.com/wiki/ctrlSetStructuredText Any ideas? class title : RscStructuredText { idc = IDC_MS_TITLE; x = 0.25 * safezoneW + safezoneX; y = 0.16 * safezoneH + safezoneY; w = 0.5 * safezoneW; h = 0.03503 * safezoneH; colorText[] = {1, 1, 1, 1}; colorBackground[] = TITLE_BACKGROUND_COLOUR; }; _title = _display displayCtrl IDC_MS_TITLE; _title ctrlSetStructuredText parseText format ["<t align='left' size='1.25'>Mission Status</t> <t align='right' size='1.25'><img image='%1'/> %2<t align='right' size='0.75'> (%3)</t> </t>", _icon, name player, vehicleVarName player];- 26 replies
-
- 1
-
- rscstructuredtext
- title
-
(and 1 more)
Tagged with:
-
RscControlsGroup, Text Box with Scroll Bar Script. How to?
chrs posted a topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
class b_textScrollBox: RscControlsGroup { idc = -1; text = ""; //--- ToDo: Localize; x = 0.371094 * safezoneW + safezoneX; y = 0.654 * safezoneH + safezoneY; w = 0.381563 * safezoneW; h = 0.341 * safezoneH; class Controls { class b_textBox: RscStructuredText { idc = 1000; text = "b_textBox"; //--- ToDo: Localize; x = 0.291094 * safezoneW + safezoneX; y = 0.22 * safezoneH + safezoneY; w = 0.381563 * safezoneW; h = 0.341 * safezoneH; }; }; }; Hi, I'm trying to create a script that will expand the RscStructuredText text box above's height dynamically based on the text passed to the script. For example: 0 = ["this is some test text..."] execVM "addText.sqf"; So far Ive figured out how to expand and shrink the height of the text box. For an example of what I mean this script would double the height of the RscStructuredText control: _t = _this select 0; (_display displayCtrl 1000) ctrlSetStructuredText (parseText _t); _pos = ctrlPosition (_display displayCtrl 1000); _height = 2 * (_pos select 3); (_display displayCtrl 1000) ctrlSetPosition [(_pos select 0),(_pos select 1),(_pos select 2),_height]; (_display displayCtrl 1000) ctrlCommit 0; However I'd like to expand the height with precision so the scroll bar only goes to the bottom on the text. Could anyone point me in the right direction? Thanks.- 1 reply
-
- rsccontrolsgroup
- rscstructuredtext
-
(and 3 more)
Tagged with: