go ahead... be a heretic | |
PerlMonks |
Re: Wx::Panel not renderingby tunaboy (Curate) |
on Feb 10, 2005 at 00:06 UTC ( [id://429552]=note: print w/replies, xml ) | Need Help?? |
OS: WinXP
Perl: ActiveState 5.8.3 build 809 wxPerl: 0.19 With your original code if I minimise then maximise the window the panel appears. So my guess is the window needs to be redrawn for the panel to appear. I tried doing a $self->Refresh inside the menu callback but that did not work for me. I made the following changes to have it appear automatically:
Using the sizer to resize the window after the panel is created makes it appear for me. Of course the frame changes size as well which may not be what you are after. I am not sure if this is what you are after or if it helps at all.
In Section
Seekers of Perl Wisdom
|
|