Re: opening a child window
- From: Andy Gilman <amgilman myfairpoint net>
- To: Murray Cumming <murrayc murrayc com>
- Cc: gtkmm-list gnome org
- Subject: Re: opening a child window
- Date: Wed, 24 Apr 2013 07:37:36 -0400
On Wed, 24 Apr 2013 10:14:04 +0200
Murray Cumming <murrayc murrayc com> wrote:
On Tue, 2013-04-23 at 16:44 -0400, Andy Gilman wrote:
[snip]
Thank you for these quick and helpful responses.  I am still a bit
perplexed, and in the interests of brevity and clarity I may have
omitted relevant info.  If I put the "some_window.show() function in
the Main file (where the primary window is called through "return
app->run(primary_window), it works fine.  But I was hoping to call
the "some_window" from a button click in the primary_window.  I
have set up such a button and it is functional.  I do not get any
error messages, but I also do not get any child window.  Perhaps
the pattern I am attempting is not desirable programming? 
[snip]
I suspect that you are doing this:
void somemethod()
{
  Gtk::Window mywindow
  mywindow.show();
} //mywindow is now deleted because it is out of scope
rather than this:
void somemethod()
{
  m_mywindow = new Gtk::Window(); 
  mywindow->show();
}
But if you show some simple code then people can tell you what you are
doing wrong. This is rather simple stuff.
Next time I will send along the code.  However, this time, your
suspicion (both about the code and the simplicity of the problem) were
accurate.  Thank you for this help.
Andy
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]