From: Mattia B. <mb...@ds...> - 2002-02-07 21:52:05
|
> # haves to exist: > $this->{text} = Wx::StaticText->new($this, -1, 'example'); $this->{text}->Hide; # or Show( 0 ); > # problem: at startup it is nowhere added... > # so it hangs around at the top of the window > > # after a specific action: > $this->{sizer}->Add($this->{text}, 0); > $this->{sizer}->Layout; > # ok, great... $this->{text} doesn't any longer hang homeless around > # and everything's like it's supposed... # cool ;-) > # after another specific action: > $this->{sizer}->Remove($x); > $this->{sizer}->Layout; > # layout is ok again... but $this->{text} is homeless again > # and is placed somewhere it shouldn't be... $this->{text}->Hide; # or Show( 0 ); > so, my question: > how can i prevent $this->{text} to be on the screen while it has no official > place on the gui? > it has to exist... HTH Mattia |