[Gtk-sharp-list] Re: How to hide a widget from a glade file?
Miguel
26031@t-link.de
Thu, 10 Jun 2004 10:00:14 +0200
On Wed, 2004-06-09 at 23:25, McP wrote:
> You could set the Visible property to false to the widgets you want
> after calling the ShowAll function.
> ....
> gui = new Glade.XML(null, "monotageditor.glade", "freedb_window", null);
> gui.Autoconnect(this);
> window.ShowAll();
> widget_xxxxxx.Visible = false;
> ....
Thx, missing [Glade.Widget] bevore every widget causes all probs.
>
> El mar, 08-06-2004 a las 17:23, Tobias Bradtke escribió:
> > Miguel wrote:
> > > Hi,
> > >
> > > my Intention is to make a app, which can "change" widgets per button
> > > press.
> > > To get that working I choosed two frame container and added a button
> > > into each. If you press button1 it hides itself and button2 involves the
> > > area from button1. If you press now button2, button3 rises on the area
> > > which button1 was further. And so on.
> > > This is only a simple example and works perfekt with self coded Gtk#.
> > >
> > > [..]
> > >
> > > But I don't get that working with glade.
> > > Here's my suggestion. But nothing happens.
> > > Does somebody know how to handle it?
> > >
> > > //Source_Beginn
> > > using System;
> > > using Gtk;
> > > using Glade;
> > > using GtkSharp;
> > >
> > >
> > > public class MoreWidgets_Glade
> > > {
> > > bool debug = true;
> > > // Define the widgets
> > > [Glade.Widget]
> > > Button button1;
> > > Button button2;
> > > Frame frame1;
> > > Frame frame2;
> >
> > I don't know much about gtk-sharp and glade yet, but i think you you have to use the "[Glade.Widget]"-Attribute before
> > every Widget.
> >
> > webwurst
> >
> > _______________________________________________
> > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list