in reply to WxPerl: Hide() a GridSizer?

I think you need to supply an additional argument to the Hide method. It's signature is ->Hide($obj [,$bool]) where $obj can be a window, sizer or an integer.

Hide() is simply a convenience method for calling Show() with a show argument of false.

The methods Hide and Show affect objects managed by the sizer. I don't believe the sizer itself has any graphical presence on the screen.

For more details, see the wxSizer C++ documentation.

Replies are listed 'Best First'.
Re^2: WxPerl: Hide() a GridSizer?
by isync (Hermit) on Jul 09, 2008 at 08:43 UTC
    You two indeed pointed me into the right direction! It's now working:

    The method need an additional argument. As first, I pass in which "base" object I am operating on "$this->{tab2}->{maingrid}->", then I tell Wx through the next (needed!) argument, which sub-part of this object it should hide. So I changed my strategy and now I am operating on the 3-column Sizer called maingrid, of which I hide the third column:

    $this->{tab2}->{maingrid}->Hide(2);

    (the hint at $bool and at that "Hide and Show affect objects managed by the sizer." was invaluable!)