How to obtain Windows Z order

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
playerdark
Posts: 64
Joined: Mon Aug 01, 2005 5:06 am

How to obtain Windows Z order

Post by playerdark »

Hello all,

I wonder if it is possible to obtain the Z-Order of the windows that are opened in the GUI? Or at least stop windows from being brought to the front by clicking on them? I open 2-3 windows sometimes and currently it is basically impossible to determine which window should receive a mouseclick when they overlap. I can of course determine in which window a mouseclick is, but if they overlap, I also need to know which one is on top.

Thanks
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

the list of children is rendered sequentially so the last in the list will be the top one, so the list of children must be checked from back to front.
You don't need to do it yourself, you can use getElementFromPoint
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
playerdark
Posts: 64
Joined: Mon Aug 01, 2005 5:06 am

Post by playerdark »

Thanks, it worked :P
Post Reply