Re: Glade, GTKMM, and adding widgets to containers that are created in Glade.





On Thu, Oct 15, 2009 at 3:17 AM, Murray Cumming <murrayc murrayc com> wrote:


It should work, though you would see a warning on stderr if the
scrolledwindow already had a child widget (it may only contain one). A
simple test case might make things clearer.

I wonder if this has something to do with the Viewport that gtkmm's
ScrolledWindow::add() automatically adds to ScrolledWindows when needed
by the particular type of child widget.

I got no error messages in stderr and the TreeView is the only widget I put in it.  I even added a Viewport to the ScrolledWindow in glade even though I don't have to with a TreeView widget, and got the same result.  As I get farther in my program, I am going to try different containers( like a vbox ro hbox) to see if i get the same results.  If I don't then there's something wrong with the scrolledwindow.  I will report back if I find something.

Thanks for all your help.

Steve


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