is there a way to draw a widget’s child always on top of other child/layer?
it can be that during time, some other layers will be added as children, after that particular widget.
i need to place this particular widget always on top.
any way, you know?
Of course, but I don’t have control of other widgets, just mine. So if I do addChild at time 0, and later some others actors add child to the same widget, mine is covered…
Is there somethings I can do from within my child?
There’s not really anything up there that you should be using.
I think it would be difficult to put anything up there. Normally widgets are responsible for their children. So when your module is deleted from the rack, all of it’s child widgets should get cleaned up. If you go sticking widgets into other containers, then you need to be absolutely sure that you can remove them again and dispose of them correctly before they try to access anything that’s been deleted.
From my perspective, the only problem can occour by placing an LED on top of a port-widget. But a port-widget already has an LED inside, that emits light when connected by a cable, depending on the voltage passing the port/cable.
What about placing the LED beneath the port-widget or placing a large LED under the port-widget to create an illuminated ring around the port?
the problem is that some port-widget on some modules are “smaller” than the cable ring size.
so place a ring around it won’t be visibile, because will be behind the cable on top (which can be larger)…