How to put a picture on the right bottom cor ner of a frame?

Hi Robin,

When the menubar was added then the size changed and
so the Layout was done.

So is the solution to force a Layout event after adding the menubar? Isn't
SetAutoLayout supposed to handle this?

JC

···

-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Thursday, February 20, 2003 12:57 PM
To: wxPython-users@lists.wxwindows.org
Subject: Re: [wxPython-users] How to put a picture on the right bottom
cor ner of a frame?

Jeff Childers wrote:

4- The picture will appear but in the upper left if the self.SetMenuBar is
not commented out.

Could this be a bug in wx?

No, it's because the panel starts out the same size as the frame's
client area, and so with no menubar the Layout is not done since there
is no size event. When the menubar was added then the size changed and
so the Layout was done.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org

Jeff Childers wrote:

Hi Robin,

When the menubar was added then the size changed and so the Layout was done.

So is the solution to force a Layout event after adding the menubar? Isn't
SetAutoLayout supposed to handle this?

Yes, but it is only done in the default EVT_SIZE handler. If there is no size event (for whatever reason) then layout won't happen.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!