Tweak for slider/scrollbar step amount for arrows

BlitzMax Forums/MaxGUI Module/Tweak for slider/scrollbar step amount for arrows

skn3(Posted 2011) [#1]
Ok well a long standing "bug" of maxgui has been the 1 pixel/unit scrolling for sliders when pressing the arrow buttons. I have made a tweak to allow the user to specify how much the scrollbar/slider should scroll when arrows are pressed:

Maxgui
maxgui.bmx
Around line 2310 add a new function:


gadget.bmx
Around line 189 add a new field "stepAmount=1":


gadget.bmx
Around line 773 add a new method to TGadget class:


gadget.bmx
Around line 1018 add a new method to TProxyGadget class:


windows
win32maxguiex.bmx
Around line 4144 add a new method to the TWindowsSlider class


win32maxguiex.bmx
Around line 4200 change the Case SB_LINEUP and Case SB_LINEDOWN code to:


mac osx
cocoagui.bmx
Around line 888 add a new method:


cocoagui.bmx
Around line 304 add a new ElseIf condition so it looks like:


linux
fltkgui.bmx
Around line 2195 add a new method:


fltkgui.bmx
Around line 2221 in the OnSpin method change it so the Select pSource is like:



PHEW! that was a mission ... the macos and linux versions are untested but they should be correct...

Last edited 2011

Last edited 2011

Last edited 2011

Last edited 2011

Last edited 2011