[Gtk-sharp-list] Don't do myframe.Add(mylabel) if it was already done

Peter Johanson latexer at gentoo.org
Mon Feb 26 12:19:14 EST 2007


On Mon, Feb 26, 2007 at 07:03:51AM -0800, David Griffith wrote:
> 
> The objective is to have everything appear in a single window.  The
> boolean approach would work, but would require a boolean for each and
> every button that causes something to appear in the right HBox slot.  That
> doesn't strike me as the Right Way to do this.

One approach folks will use when doing something like what you are
describing is to use GtkNotebook with it's tabs set invisible, and then
simply switching pages of the notebook whenever a different "view" needs
to be presented to the user. This may be an easier approach than
removing and re-adding widgets constantly.

-pete



More information about the Gtk-sharp-list mailing list