Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: PowerBuilder
Expertise: Beginner
Apr 16, 1998



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Draw order of dynamic datawindow objects

How can I control the draw order (i.e., BringToFront, SendToBack) of datawindow objects dynamically created in the deatil band?

At design time you can layer objects by using the SendToBack and BringToFront menu options. If you export a datawindow, change a few items' layering, and then reexport the datawindow, you will notice that PB has changed the sequence in which it creates your objects.

Based on this knowledge, we can understand that the layering sequence is based on the order in which the objects are created.

Therefore, in a dynamic datawindow, the way to layer objects is to create them in the sequence you want them layered. If you want to change the layering of objects after they have been created, you will need to destroy them and recreate them.

DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date