How to check the “Z-position” of form in a MDI application?
问题 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