I am adding elements at runtime on a form. These new elements cover the old static elements on the form, which I don’t want to happen. How do I set the “bring to front” property of the static element so that old static elements on the form will remain displayed on the screen?
In the solutionModel you can set the formIndex property for elements you put on the form. The higher the formIndex, the more to the front the element will be.
Joas:
In the solutionModel you can set the formIndex property for elements you put on the form. The higher the formIndex, the more to the front the element will be.
Thanks!
Hi, I have another question regarding this.
I currently have 2 forms, 1 form added as a TabPanel to the main form. I have an element on the main form which I would like to be displayed on top of the TabPanel form. I try to move the element through controller.setDesignMode(true) and change it’s location to be on top of the TabPanel’s form. I notice that the element is placed behind the TabPanel form. Is there a way to force it to move it on top of the TabPanel form, but still part of the main form at runtime after or duing design mode?
see the solution model: button.setFormIndex()
make that higher then the tabpanels formindex, then it should be on top of the tabpanel