Re: non-modal dialogs
- From: Murray Cumming <murrayc murrayc com>
- To: Morten Bo Nielsen <morten bo nielsen topsil com>
- Cc: gtkmm-list gnome org
- Subject: Re: non-modal dialogs
- Date: Fri, 17 Nov 2006 16:21:58 +0100
On Thu, 2006-11-16 at 10:31 +0100, Morten Bo Nielsen wrote:
> hi
>
> I have searching for a way to do non-modal dialogs. In my application I
> want to have multiple message boxes, that times out and destroys
> themselves when done.
>
> I have made a class that extends the ordinary MessageDialog class, and
> overloads run() and on_delete_event. Code at the bottom.
I'm pretty sure that Dialog::run() is for modal dialogs.
I would just use show() and connect a signal_timeout handler that called
hide() or delete on the window (passed via sigc::bind, maybe) after a
certain amount of time.
[snip]
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]