Custom gadget layout

BlitzMax Forums/MaxGUI Module/Custom gadget layout

JoshK(Posted 2010) [#1]
I have a panel with four gadgets inside it. The panel may be resized, and I have a particular way I want to gadgets inside to be resized when it changes. I could use subpanels to control the layout, but I don't want to lose the ability to cycle through gadgets with the tab key.

Is the Rethink() method appropriate here, if I make the panel a proxygadget? Can someone how it works? Thanks.


SebHoll(Posted 2010) [#2]
Unfortunately, the proxy design pattern won't allow you to do this.

Have a look at my attempt to make the best of it in MaxGUI.ProxyGadget's scrollpanel.bmx. The scrollbars obviously have to update if an EVENT_WINDOWSIZE causes the viewport area to change (see eventHook(). It also overrides SetShape() in case the user attempts to resize the control directly, but neither of these methods will update the gadget if a parent is programatically resized independently from the window.


JoshK(Posted 2010) [#3]
You know, my obsession with properly resizing complex gadgets might be silly. When was the last time you saw a color vector control that resized in Windows?