Set a wxPanels Mimimum Dimensions & Keep its Sizer Perspective

Hello

I would like to know if it is possible to set a wx.Panel's minimum
dimensions like it is in Java?

Some extra information that maybe required. I have an application
where the main sizer is a wx.BoxSizer( wx.HORIZONTAL ) & on the
BoxSizer there are 2 wx.Panels( one on the left which takes up 2/3rds
of the window width & another panel on the right which takes up the
remaining 1/3rd of the window width).

And I want to set the wx.Panel on the right to have a minimum width of
200 & a minimum height of 400. Can I do this? And if so will it affect
my wx.BoxSizer when I resize the main window?

HI,

ยทยทยท

On Fri, Oct 1, 2010 at 11:20 PM, Sascha <nilly16@yahoo.com> wrote:

Hello

I would like to know if it is possible to set a wx.Panel's minimum
dimensions like it is in Java?

Some extra information that maybe required. I have an application
where the main sizer is a wx.BoxSizer( wx.HORIZONTAL ) & on the
BoxSizer there are 2 wx.Panels( one on the left which takes up 2/3rds
of the window width & another panel on the right which takes up the
remaining 1/3rd of the window width).

And I want to set the wx.Panel on the right to have a minimum width of
200 & a minimum height of 400. Can I do this? And if so will it affect
my wx.BoxSizer when I resize the main window?

See the SetMinSize method (panel.SetMinSize((200,400)))

It depends upon what flags and proportion you pass when adding the
panel to the sizer.

Cody