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

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,
--
Chuck

No luck. Neither thing worked.

--vicki

ยทยทยท

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

vicki@stanfield.net wrote:

No luck. Neither thing worked.

No it didn't. However, you are defining the size of your Frame in
__wxFrame.init__(...). When I change that to default, I end up with huge
panels, but no overlap. I"d look at where else you define sizes, and
make sure they are all default.

And yes, sizers are tricky....

-Chris

-- --
Christopher Barker, Ph.D.
Oceanographer
                                                
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov