PDA

View Full Version : Absolute positioning and "send to back" equivilent



zz9pa
4 Dec 2013, 7:00 AM
I realise that toFront and toBack only work with floating components - but if I have an "absolute" layout panel
and allow users to dynamically add new controls - I could do with being able to change the order.

Is there anyway to do the equivilent of toFront and toBack with that ?

(It seems the latest controls added are always on top?)

Kevin Jackson
6 Dec 2013, 8:25 AM
Any chance you could add an image, screen cap or diagram of what you are looking for? I'm a bit confused.

zz9pa
6 Dec 2013, 9:31 AM
I think I've managed to do a toFront for overlapping components - I just needed to re-add the component back to the panel

parent.add(childControl)

and that did the trick..

(I can live without a toBack)