[Gtk-sharp-list] Hide Box
Mikkel Kruse Johnsen
mikkel at linet.dk
Tue Oct 9 05:02:35 EDT 2007
Hi Søren
Where do you pack the hbox into the window or some other container. I
myself have problems unerstanding it, but I think it has something to do
with realization of the widgets. You can only do this after it is
realized (added to another container). Im not sure about this though.
hbox = new HBox();
window.Add (hbox);
testlabel = new Label("mm test");
hbox.PackStart(testlabel);
hbox.ShowAll();
hbox.Visible = false;
/Mikkel
On Tue, 2007-10-09 at 10:05 +0200, Søren Juul wrote:
> Thats weird the code below doesn't work for me
>
> hbox = new HBox();
> hbox.HideAll();
> testlabel = new Label("mm test");
> hbox.PackStart(testlabel);
> hbox.Visible = false;
>
>
> 2007/10/9, Mikkel Kruse Johnsen <mikkel at linet.dk>:
>
> Hi Søren
>
> I use "hbox.Visible = false" and it works fine for me.
>
> Fedora7 with standard packages.
>
> /Mikkel
>
> On Tue, 2007-10-09 at 09:37 +0200, Søren Juul wrote:
>
> > Hi
> >
> > Isn't it possible to hide a (H/V)Box?
> >
> > hbox.Visible = false, hbox.HideAll() and hbox.Hide() doesn't seem to work
> >
>
> Med Venlig Hilsen / Kind Regards
>
>
> Mikkel Kruse
> Johnsen
> Adm.Dir.
>
> Linet
> Ørholmgade 6 st
> tv
> Copenhagen N
> 2200 Denmark
>
> Work: +45
> 21287793
> Mobile: +45
> 21287793
> Email:
> mikkel at linet.dk
> IM:
> mikkel at linet.dk
> (MSN)
> Professional
> Profile
> Healthcare
>
>
> Network
> Consultant
>
>
>
>
> --
> Med venlig hilsen / kind Regards
> Søren Juul
Med Venlig Hilsen / Kind Regards
Mikkel Kruse
Johnsen
Adm.Dir.
Linet
Ørholmgade 6 st tv
Copenhagen N 2200
Denmark
Work: +45
21287793
Mobile: +45
21287793
Email:
mikkel at linet.dk
IM:
mikkel at linet.dk
(MSN)
Professional
Profile
Healthcare
Network
Consultant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071009/c7fba01d/attachment.html
More information about the Gtk-sharp-list
mailing list