Re: [Java-gnome-developer] Glade file question
Brought to you by:
afcowie
From: basquale\.fersini\@libero\.it <bas...@li...> - 2005-12-20 15:15:22
|
Il giorno mar, 20/12/2005 alle 09.44 -0500, Adam Jocksch ha scritto: Scott J. Harmon wrote: > > >bas...@li... wrote: > > > > > >>Il giorno mar, 20/12/2005 alle 10.11 +1100, Andrew Cowie ha scritto: > >>On Mon, 2005-19-12 at 22:33 +0100, bas...@li... wrote: > >> > >>Thanks Andrew, but I have another thing to understand. In particular,= when I load the glade file with > >> > >>LibGlade glade =3D new LibGlade("foo.glade", this); > >> > >>and launch the main, ALL forms are displayed! What about if I want to= load a single form when I pressed a button? Are forms managed in the sa= me class file? > >> > >> > >> > > > >Try the other constructor, which allows you to specify the window: > >LibGlade gladeMain =3D new LibGlade("foo.glade", this, "main"); //Load= s main > > > >LibGlade gladeMain =3D new LibGlade("foo.glade", this, "search"); //Lo= ads > >search > > > >LibGlade gladeMain =3D new LibGlade("foo.glade", this, "about"); //Loa= ds about > > > >Scott. > > > > > As another alternative you can set all the windows to not be visible in= > glade, and then that way they will stay hidden until you explicitly sho= w > them. > > Adam Thanks a lot, guys!!! My simple application works as I want now! For Adam: I want to associate each form to a class, so I can managed them= with "structured" sense, you know; thanks however for the trik :-) . If the java-gnome community wants, when useful, I whis to translate the g= lade tutorial in Italian, just few days... Bye, Pas. |