UpperM 14 Posted June 11, 2016 Hi ! After few search I found how to add a Scrollbar to my Structured Text. But I have a problem. I don't want an horizontal bar, just a vertical bar. When I have a text, the text is cut and the rest goes in a new line. As you can see : the text is : 123456789 TEST TEST 123456789 test testa bcdef 123456789. Text Show IG : 123456789 TEST TEST 123456789 test testa 123456789. My HPP class My_Dialog { idd = -1; movingEnable = true; enableSimulation = true; class controls { class SMS_GROUP : RscControlsGroup { x = 0.818657 * safezoneW + safezoneX; y = 0.5342 * safezoneH + safezoneY; w = 0.159844 * safezoneW; h = 0.165 * safezoneH; class controls { class LECTURE_SMS : STRUCTURED_TEXT { idc = LECTURE_SMS_IDC; text = "123456789 TEST TEST 123456789 test testa bcdef 123456789"; x = 0;//0.65; y = 0;//0.2; w = 0.45; h = 1; }; }; }; }; }; My Common.hpp class RscControlsgroup { type = CT_CONTROLS_GROUP; idc = -1; style = ST_MULTI; x = (safeZoneX + (SafezoneW * 0.0163)); // scalability code which resizes correctly no matter what gui size or screen dimensions is used y = (safeZoneY + (SafezoneH * 0.132)); w = (SafezoneW * 0.31); h = (SafezoneH * 0.752); class VScrollbar { color[] = {0.5, 0.5, 0.5, 1}; width = 0.015; autoScrollSpeed = -1; autoScrollDelay = 0; autoScrollRewind = 0; arrowEmpty = "\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa"; // Arrow arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa"; // Arrow when clicked on border = "\A3\ui_f\data\gui\cfg\scrollbar\border_ca.paa"; // Slider background (stretched vertically) thumb = "\A3\ui_f\data\gui\cfg\scrollbar\thumb_ca.paa"; // Dragging element (stretched vertically) }; class HScrollbar { color[] = {1, 1, 1, 1}; height = 0; }; /*class ScrollBar { color[] = {1,1,1,0.6}; colorActive[] = {1,1,1,1}; colorDisabled[] = {1,1,1,0.3}; arrowEmpty = "\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa"; // Arrow arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa"; // Arrow when clicked on border = "\A3\ui_f\data\gui\cfg\scrollbar\border_ca.paa"; // Slider background (stretched vertically) thumb = "\A3\ui_f\data\gui\cfg\scrollbar\thumb_ca.paa"; // Dragging element (stretched vertically) };*/ class Controls {}; Share this post Link to post Share on other sites
UpperM 14 Posted June 11, 2016 Solved by changing the W=0.45 by 0.40 Share this post Link to post Share on other sites