1 Reply Latest reply on Mar 14, 2010 4:16 PM by AdrianWiecek

    Set visual priority

    Francisc Level 3



      How can I control the `visual priority` of children in a container like Canvas or VBox?

      I want to have the element that was clicked overlap all other in that container / application for example.


      Thank you!

        • 1. Re: Set visual priority
          AdrianWiecek Level 3



          As far as I understand, you want to bring clicked child to front? If so, you probably want to set index of clicked element to the highest one in the container:


          canvas.consetChildIndex(clickedElement, canvas.numChildren - 1);



          Adrian Wiecek