From: Marco T. <wx...@so...> - 2002-02-07 15:35:55
|
hello again, i have a sizer which haves to change the number of it's children during the runtime of the program... my code: # haves to exist: $this->{text} = Wx::StaticText->new($this, -1, 'example'); # 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... # 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... 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... any help would be appreciated greetings marco |