Search the Community
Showing results for tags 'scrollbar'.
Found 2 results
-
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:
-
Hi all, I am in the process of making a UI and wanted to have a scrollbar with the button but for this to work how I imagine it, I would need to be able to set the scrollbar position. The "MORE SETTINGS" button would scroll down too. There is no scrollbar yet as I don't want to waste time adding RscControlsGroup, etc... Just wondering if it is possible? I can't find anything on the Wiki.