Re: How to show new window?

> 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();
> 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 Thanks!

Murray Cumming
murrayc murrayc com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]