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.
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.