I thought there had a message sent via AddActionSignalTarget() but no.
OK thank you Yahn.
From: "Yahn Bernier" <[EMAIL PROTECTED]> Reply-To: [email protected] To: <[email protected]> Subject: RE: [hlcoders] VGUI : event when mouse pointer enters/exists a panel Date: Fri, 3 Aug 2007 10:17:11 -0700 You need to subclass Button and implement OnCursorEntered etc. there, not in the parent Panel. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Janek Le_Vert Sent: Friday, August 03, 2007 10:12 AM To: [email protected] Subject: [hlcoders] VGUI : event when mouse pointer enters/exists a panel Hi all, I spent hours trying to understand how I can catch a speciall event. I hope you'll be able to help me. I have a Panel which is including buttons (which are panels too). I want to execute a specific function when my mouse pointer is on a button (it is entering in the GetBounds area of this button). I don't succeed to find how. I have seen several virtual methods : - OnMouseEntered - OnMouseExited - OnCursorMoved I added a virtual void OnCursorEntered(); but it never goes in it. I tried a virtual void OnCursorMoved(int x,int y); but it only send events when in the father panel. I want to receive events from children (the buttons). I never receive events when I 'm on a button. I also tried MESSAGE_FUNC_INT_INT( OnCursorMoved, "OnCursorMoved", x, y ); but it has the same result as using directly virtual void OnCursorMoved(int x,int y); . It is like I don't receive any "OnCursorMoved" event from children. Do you have idea on how to do that ? Thank you in advance for your advices. _________________________________________________________________ Personnalisez votre Messenger avec Live.com http://www.windowslive.fr/livecom/ _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
_________________________________________________________________ Windows Live Spaces : créez votre blog à votre image ! http://www.windowslive.fr/spaces _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

