Hello.
I have created MDI application in Delphi. Lets assume that I have a bunch of MDIChild forms in my application which are visible on the screen. I would like to perform a loop on those forms and check in what order each of the forms is displayed on the screen.
For example if I have 3 MDICHild forms:
FormA
, FormB
, FormC
and
FormB
partly overlaps FormA
and FormC
partly overlaps FormB
I want to mark their Z property (deepth) as follows:
FormB.Z = 2 // that form is between FormA and FormC
FormA.Z = 3 // that form's distance is longest from user, form is overlapped by FormB and
FormC.Z = 1 // that form is at the top of all forms in my application
Thanks for your time.