Slower gadget & canvas resizing...

BlitzMax Forums/MaxGUI Bug Reports/Slower gadget & canvas resizing...

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

From my experience SetGadgetShape is deadly slow and buggy.

Use SetGadgetLayout(gadget:TGadget,Left,Right,Top,Bottom) instead and I'm sure the redrawing problems will be gone forever.

Exactly! Coconut76: this is why your resizing will be slower. MaxGUI.Win32MaxGUIEx is highly optimized in repositioning gadgets internally using SetGadgetLayout upon gadget resize - calling SetGadgetShape() is painfully slow in comparison as the OS to redraw parts of the parent gadget and the gadget itself immediately, unlike the internal MaxGUI resizing MaxGUI mechanisms which cache the drawing so that it is all performed once all the gadgets have been relocated.