Re: opening a child window



On Tue, 23 Apr 2013 21:31:51 +0200
Murray Cumming <murrayc murrayc com> wrote:

On Wed, 2013-04-24 at 07:21 +1200, Ian Martin wrote:
If goign with a Gtk::Window, remember that if you use new(), your
window 
will only have a lifetime as long as the calling function

No, if you new() a window then it will live until you delete it.

I think it's some_window.show() that Andy needs.


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? 

I have considered adapting a Dialogue for my purposes, but it seemed
that a basic Window was more straightforward.

Thanks again.

Andy
be brief



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