Moving references in foreground during runtime

Find and share HowTos to various installations / configurations!
2 posts • Page 1 of 1
RobHe28
Posts:1
Joined: Thu Dec 07, 2017 10:19 am

Moving references in foreground during runtime

Post by RobHe28 »

Hey,

I'm currently trying to place panel references in the foreground when clicked during runtime. For my application it is difficult to solve the problem with the layer functions like layeron(), layeroff() etc. Is there any CTRL-function to place refernences in the foreground or background like in the gedi module when clicking the following/attached buttons?

Image

If not is there an option in CTRL to set the layer attributes of shapes (like setValue("REF","layer",2))?

Thank you for your help.
Robin
Attachments
gedi.png

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Moving references in foreground during runtime

Post by leoknipp »

A reference can be set visible/invisible or it can be added (addSymbol) or removed (removeSymbol) during runtime.
Changing the drawing order is not possible.
Maybe you can solve it by removing/adding the reference during runtime.

When talking about the drawing order you have to keep in mind that complex objects (widgets like buttons, combo boxes, ...) are always drawn in front of a simple graphical objects (rectangle, line, ....).

Best Regards
Leopold Knipp
Senior Support Specialist

2 posts • Page 1 of 1