b#66 - XTextBox bad values sent to the gslc_ElemXSliderCreate()
MODIFY
builder/src/main/java/resources/templates/arduino.t
builder/src/main/java/resources/templates/arduino.t
@@ -223,7 +223,7 @@ bool CbSlidePos(void* pvGui,void* pvElemRef,int16_t nPos)
// Create vertical scrollbar for textbox
pElemRef = gslc_ElemXSliderCreate(&m_gui,E_SCROLLBAR$<ID>,$<PAGE_ENUM>,&m_sXSlider[$<COUNT>],
- (gslc_tsRect){$<X>+$<WIDTH>-21,$<Y>+4,20,$<HEIGHT>-8},0,100,0,5,true);
+ (gslc_tsRect){$<X>+$<WIDTH>-21,$<Y>+4,20,$<HEIGHT>-8},0,$<ROWS>,0,5,true);
gslc_ElemSetCol(&m_gui,pElemRef,$<FRAME_COLOR>,$<FILL_COLOR>,$<GLOW_COLOR>);
gslc_ElemXSliderSetPosFunc(&m_gui,pElemRef,&CbSlidePos);
<STOP>

MODIFY
builder/src/main/java/resources/templates/arduino_min.t
builder/src/main/java/resources/templates/arduino_min.t
@@ -232,7 +232,7 @@ bool CbSlidePos(void* pvGui,void* pvElemRef,int16_t nPos)
// Create vertical scrollbar for textbox
gslc_ElemXSliderCreate_P(&m_gui,E_SCROLLBAR$<ID>,$<PAGE_ENUM>,$<X>+$<WIDTH>-21,$<Y>+4,20,$<HEIGHT>-8,
- 0,100,0,5,true,$<FRAME_COLOR>,$<FILL_COLOR>);
+ 0,$<ROWS>,0,5,true,$<FRAME_COLOR>,$<FILL_COLOR>);
pElemRef = gslc_PageFindElemById(&m_gui,E_PG_MAIN,E_SCROLLBAR$<ID>);
gslc_ElemXSliderSetPosFunc(&m_gui,pElemRef,&CbSlidePos);
<STOP>

MODIFY
builder/src/main/java/resources/templates/linux.t
builder/src/main/java/resources/templates/linux.t
@@ -231,7 +231,7 @@ bool CbSlidePos(void* pvGui,void* pvElemRef,int16_t nPos)
// Create vertical scrollbar for textbox
pElemRef = gslc_ElemXSliderCreate(&m_gui,E_SCROLLBAR$<ID>,$<PAGE_ENUM>,&m_sXSlider[$<COUNT>],
- (gslc_tsRect){$<X>+$<WIDTH>-21,$<Y>+4,20,$<HEIGHT>-8},0,100,0,5,true);
+ (gslc_tsRect){$<X>+$<WIDTH>-21,$<Y>+4,20,$<HEIGHT>-8},0,$<ROWS>,0,5,true);
gslc_ElemSetCol(&m_gui,pElemRef,$<FRAME_COLOR>,$<FILL_COLOR>,$<GLOW_COLOR>);
gslc_ElemXSliderSetPosFunc(&m_gui,pElemRef,&CbSlidePos);
<STOP>

b#66 - XTextBox bad values sent to the gslc_ElemXSliderCreate()