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

