Re: Keeping focus with a dialog
| From: | Steph | Date: | Mon, 18 Mar 2002 17:08:33 +0000 |
| Subject: | Re: Keeping focus with a dialog | ||
| References: | 1 2 3 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-1586@lists.php.net to get a copy of this message | ||
http://gtk.php.net/manual/en/gtk.gtkdialog.php
http://gtk.php.net/manual/en/gtk.gtkwidget.signal.delete-event.php
http://gtk.php.net/manual/en/gtk.gtkwidget.signal.destroy-event.php
I'm just going out to the garden to eat worms.
----- Original Message -----
From: "Michael Dransfield" <mike@blueroot.net>
To: "PHP-GTK gen" <php-gtk-general@lists.php.net>
Cc: "Markus Fischer" <mfischer@guru.josefine.at>
Sent: Monday, March 18, 2002 4:55 PM
Subject: Re: [PHP-GTK] Keeping focus with a dialog
> > >
> > > 2. I would like it so the dialog cant be closed using the X in the
> > > window, I am hiding and showing different forms and dont want them to be
> > > distroyed, just hidden when they click on the ok or cancel buttons.
> >
> > Intercept the windows 'delete_event', call your custom
> > function which hides the widget and make sure you return
> > 'true' in your function.
> >
>
> thanks! - i would have returned false and been scratching my head for
> ages...
>
> do you know the difference between delete_event and destroy_event
>
> destroy sounds much more violent somehow...
>
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>