From: "Robin Dunn" <robin@alldunn.com>
> Hmm, I've tried several variations on the code below but it still
> doesn't work. Even tried wxPostEvent, multiple calls to self.Layout()
> before and after, and calls to sizer.Remove(statusbar) without
> success.
>What platform are you on? Calling Show(false) and then sending a size event
does it for me on win2k.
I'm using wxGTK 2.2.2 on Irix 6.5. I was able to compile and install
2.2.6/5 but it wouldn't run, complaining about unresolvable symbols.
The status bar goes blank gray when I Show(false) it but the space is
still there, even with:
evt = wxSizeEvent(self.GetSize())
self.GetEventHandler().ProcessEvent(evt)
The self in this instance is my frame. Should it be the statusbar?
> I'm getting the feeling that .Show() isn't what I need but something
> more powerful like Remove() or wxFrame.RemoveStatusBar().
> Unfortunately they don't exist as far as I can tell =(.If you don't make the frame manage the scrollbar for you then you can
probably do it yourself. Create your statusbar like any other window and
add it to your sizer. Don't call frame.SetStatusBar or
frame.CreateStatusBar.
That sounds like a good idea, thanks,
ยทยทยท
--
-Mike
_____________________________________________________________
Mike Miller "Friends don't let friends use Perl."