SetGadgetLayout need s FIXED flag

BlitzMax Forums/MaxGUI Module/SetGadgetLayout need s FIXED flag

Scott Shaver(Posted 2006) [#1]
I need a FIXED flag let makes sure the child gadgets keep their a nd y positions. I don't want them to move around when the parent is resized. Is there a way to this? It's really screwing things up.


REDi(Posted 2006) [#2]
you can lock x and y like this..
SetGadgetLayout(gadget,1,0,1,0)

0 = EDGE_CENTERED
1 = EDGE_ALIGNED
2 = EDGE_RELATIVE


Scott Shaver(Posted 2006) [#3]
tried that is still moves the child gadgets, thanks though.


skidracer(Posted 2006) [#4]
Me too! Will hopefully in next update.


CS_TBL(Posted 2006) [#5]
I tend to place childs-gadgets on a panel, and the panel on the initial parent (layout locked).

At the cost of a panel, you'll have your solution for now.


Scott Shaver(Posted 2006) [#6]
unfortunately I do have them on a panel, that is on a tabber, but when I resize the tabber the children of the panel move. What am I doing wrong?


CS_TBL(Posted 2006) [#7]
ah.. hm, I never use tabbers, haven't checked that. Usually I use panels on a window. When I make the window smaller, the panelsurface becomes smaller without squeezing its content, so some gadgets on the panel just move out of the screen.


Markus Rauch(Posted 2006) [#8]
i think in default there should nothing moved around
because i rather positioning any controls by myself .

nice to have:
SetGadgetLayoutDefault