Re: How to show new window?
- From: "Murray Cumming" <murrayc murrayc com>
- To: jeffsimpson alum wpi edu
- Cc: gtkmm-list gnome org
- Subject: Re: How to show new window?
- Date: Wed, 19 Oct 2005 15:43:53 +0200 (CEST)
> I have a question that I can't seem to find an answer to on google.
>
> I have a program that uses a single window. Using glademm, gtkmm, etc, it
> generated the
> following code for my Main function:
>
> Gtk::Main m(&argc, &argv);
>
> winOscilloscope *winOscilloscope = new class winOscilloscope();
> m.run(*winOscilloscope);
> delete winOscilloscope;
> return 0;
>
> This works well, but now I want to add another window to the program.
> Specifically, I want to make
> a configuration dialog that I can open and close, controlled by widgets in
> the original window. What
> is the correct way to add this into a program that is built with glade?
You are using glademm-generated source. glademm has a separate mailing
list. Here I will always recommend use of libglademm instead.
With libglademm you would get the window and show() it, optionally
deriving a window class.
> I
> don't see any easy way how
> it's written here, seeing as the main function blocks on m.run. Thanks!
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]