Page 1 of 1

Shift Window position if mouse over

Posted: Wed Feb 18, 2009 17:42
by hurricane
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

Posted: Wed Feb 18, 2009 18:52
by Pompei2
That would interest me too! But I too have no idea :)

Posted: Wed Feb 18, 2009 19:15
by CrazyEddie
Hi,

What you could do is, when you get the mouse leaves notification on the panel, test to see if the mouse has entered a child of the panel, if so do not hide the panel.

HTH

CE.