From: Bradley M. H. <bh...@ja...> - 2001-09-17 00:50:11
|
I had tried this, but wasn't sure if that was the way to go. The only reason I was going to use this functionality is due to the fact that the "Long Help" message for a tool on the toolbar doesn't get removed from the status bar like it should. I was going to blank it out myself. Bradley M. Handy Senior Programmer/Owner Jack-of-all-trades Programming Services --www.jack-of-all-trades.net --mailto:bh...@ja... > -----Original Message----- > From: Mattia Barbon [mailto:mb...@ds...] > Sent: Sunday, September 16, 2001 3:46 PM > To: Bradley M. Handy > Subject: RE: [wxperl-users] Problems with EVT_TOOL_ENTER > > > > 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 > > |