From: Mattia B. <mb...@ds...> - 2001-09-16 21:30:32
|
I keep sending private messages instead of eeplying to the list... Sorry Mattia ------- Forwarded message follows ------- From: Mattia Barbon <mb...@ds...> To: "Bradley M. Handy" <bh...@ja...> Subject: RE: [wxperl-users] Problems with EVT_TOOL_ENTER Send reply to: mb...@ds... Date sent: Sun, 16 Sep 2001 21:46:11 +0200 > This did work for when the mouse moved over the control. However, the > documentation says that the EVT_TOOL_ENTER event is also supposed to handle > when the mouse moves off of the control as well, and that is not happening. > > I've included my code again for reference. Mmh, looks quite broken. WRT your previous post, from the toolbar docs: EVT_TOOL_ENTER(id, func) Process a wxEVT_COMMAND_TOOL_ENTER event. ******Pass the id of the toolbar itself*******. The value of wxCommandEvent::GetSelection is the tool id, or -1 if the mouse cursor has moved off a tool. So in fact your previous code ( passing the tool id ) was wrong ( you should have passed the toolbar id ); the fact that you don't get an event for the leave, is wrong, anyway. Looking at the code, seems that nobody uses this feature, it got broken someday, and no one noticed... Regards Mattia ------- End of forwarded message ------- |