Welcome! Log In Create A New Profile

Advanced

Mouse over and mouse leave?

Posted by John Marrone 
John Marrone
Mouse over and mouse leave?
December 23, 2008 04:18PM
Hi All

I want to pop up a window when the user puts the mouse over a control which I know how to do. But I want the window to close when the user takes the mouse off the control. This is what I don't know how to do. WD doesn't seem to have a mouse leave event. Can anyone help or is this not possibly.
Louis Verbraak
Re: Mouse over and mouse leave?
December 23, 2008 04:49PM
Hello John,

Perhaps you can close the popup window in the mouse over event of the window. Just add a variabel gwbPopupOpen or use WinStatus:

// In mouse over event of control.
IF WinStatus(myPopupWindow)=NotFound THEN OpenPopup(myPopupWindow)

// In mouse over event of window.
IF WinStatus(myPopupWindow)<>NotFound THEN Close(myPopupWindow)

HTH.
Alexandre Leclerc
Re: Mouse over and mouse leave?
December 23, 2008 04:56PM
Hi John,

Look at ControlOver() in the help. This will do the trick. Trap the event for the whole windows and act when the mouse enters or leave the desired field.

Best regards.
John Marrone
Re: Mouse over and mouse leave?
December 23, 2008 06:26PM
Thanks Louis that did the trick.
John Marrone
Re: Mouse over and mouse leave?
December 23, 2008 06:27PM
Thanks Alexandre, went with Louis way, but do appreciate your reply.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: