On Wed, Jul 23, 2008 at 1:17 PM, Octavian Rasnita <[EMAIL PROTECTED]> wrote:
> Hi,
>
> How can I handle the event generated when I close the window with alt+F4?

I have this in my code:

 EVT_CLOSE( $self,              \&on_close_window);

sub on_close_window {
    my ( $self, $event ) = @_;
    if ($event->CanVeto) {
        # close things here....
        if (not_everything_is_closed) {
            $event->Veto;
        }
    }
   $event->Skip;
}

>
> The app uses threads and I want to kill the threads when I close the window 
> and do other cleaning jobs.
>

I have not tried with threads yet

Gabor

-- 
Gabor Szabo http://szabgab.com/blog.html
Test Automation Tips http://szabgab.com/test_automation_tips.html

Reply via email to