Detect when splitter moved

BlitzMax Forums/MaxGUI Module/Detect when splitter moved

rs22(Posted 2010) [#1]
Hi,

Is it possible to get an event when a splitter has been moved? I couldn't see any mention of this in the docs.


jsp(Posted 2010) [#2]
Just curious what do you need this for?
When the split is moved, it only changes the space available. All gadgets on top would normally adjust itself to the new space via the SetGadgetLayout command, so in general an extra event is not needed.


rs22(Posted 2010) [#3]
I want to disable or hide scrollbars based on whether there is enough space to show all of an area's contents. It works fine with EVENT_WINDOWSIZE, but not when the splitter is resized to show more space.


jsp(Posted 2010) [#4]
To overcome the problem, could you may use the ScrollPanel it would automatically show the scrollbars. Or does the area content mean it's a canvas? Then you should get an EVENT_GADGETPAINT when the splitter was resized and you could adjust your scrollbars accordingly.


rs22(Posted 2010) [#5]
It's a canvas. I didn't consider the EVENT_GADGETPAINT event. It works now. Thanks!