Next time send a HD together.
···
On Thu, 25 Nov 2004 14:41:34 -0500 Brad DeadPath <deadpath210@gmail.com> wrote:
Hi,
I'm new to wxPython, so please bear with me.
I'm trying to to re-create re-sizeable "welcome screen", using a
frame, and a staticBitmap.
I have box two sizers, one that holds the buttons (horizontal), and
one that holds the button sizer and the static bitmap (vertical). The
Frame is resizeable, and the Bitmap is set to to expand, but keeps
it's aspect ratio (wxSHAPED I think)When Back/Next is clicked, I call the SetBitmap() method on the
staticBitmap, and then I call the RecalcSizes method on the vertical
sizer.My problem is that when I set the bitmap, it gets drawn twice, once at
a size that fits the window, and another time that's the original size
of the image, only on top of the bigger one. See attached picture.
It stays like that until I resize the frame, at which point it gets
drawn correctly.After I set the bitmap, I tried wx.Frame.Update(), Refresh(),
OnSize(), SendSizeEvent() and I tried Layout() on all my sizers, and
it still wont fix it.Is this an obscure bug? Or am I missing something?
Thanks,
Brad