wxStaticBox and wxGridBagSizer

Hi, this is my first post to the mailing list.

Basically I'm trying to create a class which has a panel (wxPanel) with a layout (wxGridBagSizer) surrounded by a frame (wxStaticBox), but I'm having problems getting the wxStaticBox working properly. I've managed to use it with wxStaticBoxSizer, but this then only allows the box to stretch in one direction or the other. If anyone could knock me up an example of how to use wxStaticBox with a wxGridBagSizer, that'd be much appreciated, and I could probably finish the rest of the class myself. It's really frustrating me at the moment.

Regards,
Tom Archer

The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other then the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.

Tuesday, April 15, 2008, 4:17:11 AM, ARCHER, Thomas wrote:

Basically I'm trying to create a class which has a panel (wxPanel)
with a layout (wxGridBagSizer) surrounded by a frame (wxStaticBox),
but I'm having problems getting the wxStaticBox working properly.
I've managed to use it with wxStaticBoxSizer, but this then only
allows the box to stretch in one direction or the other. If anyone
could knock me up an example of how to use wxStaticBox with a
wxGridBagSizer, that'd be much appreciated (...)

Please see the attached file. HTH.

-- tacao

No bits were harmed during the making of this e-mail.

gbswithbox.py (1.39 KB)