How is wxDefaultSize computed

I have a wxPanel with two widgets inside it (inside a
vertical boxSizer). The widgets are a TextCtrl and a
ComboBox with Label. For some reason, they get smushed
vertically instead of spreading out to accomodate the
widgets. (I will attach the code.). Can anyone clarify
how the wxDefaultSize is computed?

--vicki

wxComTool2.py (4.4 KB)

Try these:

- Put a "box.Fit(self)" after "self.SetSizer(box)"

- If that doesn't work, throw in wxADJUST_MINSIZE as component of your flags when you Add() to the box sizer.

HTH,

ยทยทยท

On Friday 25 April 2003 02:13 pm, vicki@stanfield.net wrote:

I have a wxPanel with two widgets inside it (inside a
vertical boxSizer). The widgets are a TextCtrl and a
ComboBox with Label. For some reason, they get smushed
vertically instead of spreading out to accomodate the
widgets. (I will attach the code.). Can anyone clarify
how the wxDefaultSize is computed?

--vicki

--
Chuck
http://ChuckEsterbrook.com