Re: SlashScreen and Exit Event

2010-10-28 Thread Alexander
Thank you Mark, My mistake was that I tried this construction: $splash->GetSplashWindow->PushEventHandler($closehandler);

Re: SlashScreen and Exit Event

2010-10-27 Thread Mark Dootson
Hi, You could catch the close event in the same manner you use to catch mouse events, although you'll need to catch the close event for the Wx::Frame. e.g. my $mouseevthandler = Wx::EvtHandler->new; EVT_MOUSE_EVENTS($evthandler, sub { 1 } ); my $closeevthandler = Wx::EvtHandler->new; EVT_C

SlashScreen and Exit Event

2010-10-27 Thread Alexander
Hello all! I try to handle Exit event by SplashScreen, and have nothing; I try use wxSplashScreen::OnCloseWindow and have error Can't locate object method "OnCloseWindow" via package "Wx::Window" at C:/Perl/!My/FTT/Res/Dialog/Splash.pm line 30. i try add EVT_CLOSE and it not work. How i can know w