CreateScrollPanel always show sliders

BlitzMax Forums/BlitzMax Module Tweaks/CreateScrollPanel always show sliders

dan_upright(Posted 2014) [#1]
Currently if you create a ScrollPanel with the SCROLLPANEL_HALWAYS or SCROLLPANEL_VALWAYS flags to show sliders even if they're not needed, they won't show up until they are needed but will stick around after that.

Adding the following in BlitzMax\mod\maxgui.mod\proxygadgets.mod\scrollpanel.bmx at line 251 to fix this:
HideGadget(scrHorizontal);HideGadget(scrVertical) ' <- this is line 250
If (flags & SCROLLPANEL_HALWAYS) Then AddHorizontalScroll(0, 0, 0) ;RemoveHorizontalScroll() ' <- this is new
If (flags & SCROLLPANEL_VALWAYS) Then AddVerticalScroll(0, 0, 0) ;RemoveVerticalScroll() ' <- this is new