Author Topic: GUI Question - Bring something to front?  (Read 793 times)

I was wondering if there's a command for bringing a gui profile to the front of the scene, like there is in the f10 menu (layout - > bring to front) 

..or..

Is there a way to change what swatch an object belongs to, sort of like gui.add(item), but that only works once.

Code: [Select]
parent.sendToBack(ctrl);
Parent being the thing containing ctrl, and ctrl being the thing you want to bring to the front. Front and back refer to the index position of the ctrl within the parent, not the physical position - and the bottom/back of the parent index means it is displayed above everything else within that parent.

wow, thanks for the quick response! I also figured out I could delete and remake the object, but ill try this.