Detect when splitter moved
BlitzMax Forums/MaxGUI Module/Detect when splitter moved
| ||
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. |
| ||
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. |
| ||
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. |
| ||
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. |
| ||
It's a canvas. I didn't consider the EVENT_GADGETPAINT event. It works now. Thanks! |