From: Bradley K. E. <bk...@bk...> - 2006-10-14 03:16:40
|
Thanks Lucian and Daniel. I've got the event firing now both in the minimal example I sent to the list as well as the "real" code I was working on. It looks like calling SetEventObject is not necessary, but passing the id of the object to the Wx::CommandEvent constructor is necessary. Thanks again, Brad Lucian Dragus wrote: > In fact, I was wrong: is working with Wx::PlCommandEvent _or_ > Wx::CommandEvent, but you must set the Id. > >> You must use the Wx::PlCommandEvent class. >> >>> my $event = Wx::CommandEvent->new(wxEVT_COMMAND_BUTTON_CLICKED); >> my $event = Wx::PlCommandEvent->new(wxEVT_COMMAND_BUTTON_CLICKED, >> $self->{button_a}->GetId); >> >>> $event->SetEventObject( $button ); >>> $window->GetEventHandler()->ProcessEvent($event); >> Best regards, >> Lucian Dragus >> >> ------------------------------------------------------------------------- >> Using Tomcat but need to do more? Need to support web services, security? >> Get stuff done quickly with pre-integrated technology to make your job >> easier Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> wxperl-users mailing list >> wxp...@li... >> https://lists.sourceforge.net/lists/listinfo/wxperl-users > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > wxperl-users mailing list > wxp...@li... > https://lists.sourceforge.net/lists/listinfo/wxperl-users > |