Shift Window position if mouse over

Forum for general chit-chat or off-topic discussion.

Moderators: CEGUI MVP, CEGUI Team

hurricane
Not too shy to talk
Not too shy to talk
Posts: 25
Joined: Fri Nov 28, 2008 11:59

Shift Window position if mouse over

Postby hurricane » 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

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

Postby Pompei2 » Wed Feb 18, 2009 18:52

That would interest me too! But I too have no idea :)

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Wed Feb 18, 2009 19:15

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.


Return to “Offtopic Discussion”

Who is online

Users browsing this forum: No registered users and 7 guests