Shift Window position if mouse over
Posted: Wed Feb 18, 2009 17:42
Hi, sorry for another noob-post but i haven't find any solution alone from my question.
Here two picture that explain better that the words the question.
http://img13.imageshack.us/img13/5204/image1yr7.jpg
http://img12.imageshack.us/img12/4827/image2ul8.jpg
I have tried this method (in pseudocode):
IF (mouse is over/enter my window)
SHIFT window's position of X
and...
IF (mouse leave my window)
SHIFT window's position of -X
This apparently work but if the mouse enter in a sub-window of principal window this code shift the window of -X and this isn't correct...
I hope that the question is clear,
Very thanks in advance, Martin
Here two picture that explain better that the words the question.
http://img13.imageshack.us/img13/5204/image1yr7.jpg
http://img12.imageshack.us/img12/4827/image2ul8.jpg
I have tried this method (in pseudocode):
IF (mouse is over/enter my window)
SHIFT window's position of X
and...
IF (mouse leave my window)
SHIFT window's position of -X
This apparently work but if the mouse enter in a sub-window of principal window this code shift the window of -X and this isn't correct...
I hope that the question is clear,
Very thanks in advance, Martin