From: Bradley M. H. <bh...@ja...> - 2001-09-16 03:30:38
|
Sorry about not specifying all the proper information. Platform: Win98 wxPerl: 0.07 (assumption was correct). wxWindows: 2.2.7 In the meantime, I will try your suggestion and let you know. Bradley M. Handy Senior Programmer/Owner Jack-of-all-trades Programming Services --www.jack-of-all-trades.net --mailto:bh...@ja... > -----Original Message----- > From: wxp...@li... > [mailto:wxp...@li...]On Behalf Of Mattia > Barbon > Sent: Saturday, September 15, 2001 5:19 PM > To: wxp...@li... > Subject: Re: [wxperl-users] Problems with EVT_TOOL_ENTER > > > You didn't say platform/wxPerl version > I'll assume MSW/0.07 > > > I've got a test program that I'm messing around with to get the > hang of the > > wxPerl API. I'm trying to use EVT_TOOL_ENTER to captures mouse > events over > > a toolbar button. However, when I move my mouse over the button the > > subroutine does not execute. I was wondering, if I am defining the > > EVT_TOOL_ENTER definition wrong, or in the wrong spot. > > > > Could someone please see if I'm doing it right? > Well, for some value of right... the code *is* right, > but ( after some debugging ) *looks* like a bug in wxWindows > > > I've have attached my sample program code. > Thanks for the sample code! > > for now, use > EVT_TOOL_ENTER( $this, -1, \&Func ); > > and use $event->GetInt() in the event handler > to discriminate between the tools > ( of course it is an hack, but I need more investigation > for a proper fix ) > > BTW, as you might have noticed, putting -1 as the id in the > event macro, acts as a wildcard: matches all ids > > HTH > Mattia > > _______________________________________________ > wxperl-users mailing list > wxp...@li... > https://lists.sourceforge.net/lists/listinfo/wxperl-users > |