sizers

Hello,

I have a question about sizers. I typically set all controls in my sizers and use wx.EXPAND because if I don’ t do this then the controls seem to overlap and size strangely when I view my application on different computers/screen resolution. But I want all the controls in my application to be the same size and look the same, unfortunately when I use EXPAND the controls in one dialog may appear different than another, and it gets even more complicated when I have say a dialog with say 10 textctrl’s 5 buttons and whatever else. Is there a good way for these things to position themselves in the sizer and also keep an absolute size but grow depending upon the screen resolution so that say the text on a button doesn’t suddenly run off the button for different screen resolutions? thanks.

Jeff

···

How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.

Jeff Peery wrote:

Hello,

I have a question about sizers. I typically set all controls in my sizers and use wx.EXPAND because if I don' t do this then the controls seem to overlap and size strangely when I view my application on different computers/screen resolution. But I want all the controls in my application to be the same size and look the same, unfortunately when I use EXPAND the controls in one dialog may appear different than another, and it gets even more complicated when I have say a dialog with say 10 textctrl's 5 buttons and whatever else. Is there a good way for these things to position themselves in the sizer and also keep an absolute size but grow depending upon the screen resolution so that say the text on a button doesn't suddenly run off the button for different screen resolutions? thanks.

Please send a small runnable sample that shows a typical problem layout for you.

···

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

Check out these two screencasts that deal with the approach to laying
out sizers. They are explained very well, I think. They use the Dabo
Designer to demonstrate, but even if you prefer to use raw wxPython,
the principles still apply.

http://leafe.com/screencasts/sizers1.html
http://leafe.com/screencasts/sizers2.html

···

On 8/18/06, Jeff Peery <jeffpeery@yahoo.com> wrote:

I have a question about sizers. I typically set all controls in my sizers
and use wx.EXPAND because if I don' t do this then the controls seem to
overlap and size strangely when I view my application on different
computers/screen resolution. But I want all the controls in my application
to be the same size and look the same, unfortunately when I use EXPAND the
controls in one dialog may appear different than another, and it gets even
more complicated when I have say a dialog with say 10 textctrl's 5 buttons
and whatever else. Is there a good way for these things to position
themselves in the sizer and also keep an absolute size but grow depending
upon the screen resolution so that say the text on a button doesn't suddenly
run off the button for different screen resolutions? thanks.

--

# p.d.