[prev in list] [next in list] [prev in thread] [next in thread]
List: gtkmm
Subject: Re: [gtkmm] Easy way to manage modal dialogs?
From: Vladislav Grinchenko <vgrinche () integ ! com>
Date: 2002-04-30 15:02:34
[Download RAW message or body]
Jarek,
Derive your class from Gnome::Dialog and then call
Gnome::Dialog::run_and_close ().
In your case it boils down to even simpler usage of
Gnome::Dialog:question_modal. Take a look at gnomemm examples.
If you don't like Gnomemm, then you can get a pretty good idea of
how to write one from examining Gnome::Dialog source code.
-VLG
On Mon, Apr 22, 2002 at 07:29:12PM +0200, Jarek Dukat wrote:
> Could you please tell me what's the easy way to open a modal dialog and
> wait for the result and then continue program's execution?
> I mean something like this:
>
> function() {
> // ... some code...
> int result = modal_dialog(YES_NO);
> // ... reaction to YES or NO clicked ...
> }
>
> where function() is a signal handler of my app's main window.
>
> --
> struct Sig {
> string name(" J a r e k D u k a t ");
> string mail(" madmaxer (at) poczta (dot) fm ");
> };
>
>
> ----------------------------------------------------------------------
> Salon Muzyczny: plyty, kasety, video, DVD...
> >>> http://link.interia.pl/f15aa
>
>
>
> _______________________________________________
> to unsubscribe or change your subscription parameters :
> https://lists.sourceforge.net/lists/listinfo/gtkmm-main
--
_____________________________________________________________
Vladislav Grinchenko (work): vgrinche@integ.com
Software Engineer (home): vladg@erols.com
Integral Systems, Inc. http: www.integ.com
_____________________________________________________________
_______________________________________________
to unsubscribe or change your subscription parameters :
https://lists.sourceforge.net/lists/listinfo/gtkmm-main
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic