Drawing order in code

Find and share HowTos to various installations / configurations!
2 posts • Page 1 of 1
AGorbatykh
Posts:59
Joined: Thu Dec 17, 2015 1:01 pm

Drawing order in code

Post by AGorbatykh »

Hello,

How to change Drawing order in code? For example, I've got a panel with some elements, by some event on that panel will adding Symbols. They will be before initialized elements. How can I set old elements to the top (z-orientation)?

Thank you.

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Drawing order in code

Post by mkoller »

A symbol is always placing the shapes in the layers where they were drawn, but the single shapes are just appended to the list of existing shapes per layer, which means they are always on top of existing shapes.
So what you can do is to use a layer with a higher number in the panel you add via addSymbol()

2 posts • Page 1 of 1