How to determine GUI element Z-order visibility?

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
mp3
Posts: 7
Joined: Sat Jul 28, 2007 11:50 pm

How to determine GUI element Z-order visibility?

Post by mp3 »

I have some static text and I want to determine whether it is clicked. For this I catch mouse up event and check if it is on static text rectangle. Till this point everything is ok. But I also want to eliminate click processing when some window covers the text. But GUI element's method

Code: Select all

isVisible
is not helpful. It returns 'true" even if element is hidden by another window! So is there any way to determine whether element is clipped by another one?
Post Reply