>When I try to close the TopWindow Frame it would have to call the
>EVT_QUERY_END_SESSION, don't?
>
>What I'm doing wrong?
>
> use Wx ;
> use Wx::Event qw(EVT_QUERY_END_SESSION) ;
>
> EVT_QUERY_END_SESSION( $app , \&OnTryExit ) ;
>
>But the sub OnTryExit() was never called!
use:
use Wx::Event qw(EVT_CLOSE);
EVT_CLOSE($app, \&OnTryExit);
greeting
Marco
|