Re: Button in a dialog
- From: rob page <page rob gmail com>
- To: "J. Baltasar Garcia Perez-Schofield" <jbgarcia uvigo es>
- Cc: gtkmm-list gnome org
- Subject: Re: Button in a dialog
- Date: Tue, 24 Jan 2006 18:32:28 +0000
If you take the return value when you use
Gtk::Dialog::run(), it should return the Gtk::RESPONSE of the button
pressed, then you should loop on the return value until you get a
Gtk::RESPONSE_CLOSE (or whatever your close button is returning).
Rob.
On 24/01/06, J. Baltasar Garcia Perez-Schofield <jbgarcia uvigo es> wrote:
>
> Hi, there !
>
> Okay, only one more question. o:-)
>
> using gtkmm 2.4, and glade and Anjuta.
>
> I have a dialog "dlgProperties", in which I need a help button to
> display some information, but *not* finish the dialog. glade/glademm
> created the source code for me (inside the constructor):
>
> dlgProperties->add_action_widget(*butHelp, Gtk::RESPONSE_HELP);
>
> My problem is that this makes the dialog to be finished, and I just
> want it to display some info and let the dialog continue with its
> processing until the user presses the button "Close", which works
> correctly.
>
> So I tried:
>
> dlgProperties->add_action_widget(*butHelp, Gtk::RESPONSE_NONE);
>
> But didn't worked out. I really want the button in the area in which it
> appears, near to the close button, but I don't want it to close the
> dialog after displaying the help info.
>
> How can I do that ?
>
> Salud !
>
> Baltasar
>
>
>
> --
>
> PBC -- J. Baltasar García Perez-Schofield
> jbgarcia en uvigo de es http://webs.uvigo.es/jbgarcia/
> Dep. Informática, Universidad de Vigo, España (Spain)
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]