Adjusting window sizes for different screen resolutions

Wx_widgets user mailing list, post #12,351
Author:
Date:
Subject:
 Jeff
 2008-07-15 09:16:09
 Adjusting window sizes for different screen resolutions
I have an app that works well, but now that we are using it realized
that
my wxSize() settings on my wxDialog windows are off for different
screen resolution
settings.

I tried searching for this dilema and I dont think I found anything
except for
possibly doing my own 'adjustments' based on a call to wxDC::GetPPI()
and
calculating my own sizes based on that. Im not even sure that will
work, but
I wanted to ask if anyone has suggestions before I start down the
wrong rabbit
trail on this one.

Thank you,
Jeff
_______________________________________________
wx-users mailing list
[email protected]
http://lists.wxwidgets.org/mailman/listinfo/wx-users
Author:
Date:
Subject:
 Manuel Martín
 2008-07-15 20:48:55
 Adjusting window sizes for different screen resolutions
Have you read (docs & wiki) about wxSizer?
sizers is what you need for dealing with different screen resolution
and different font sizes.

HTH
Manolo

> I have an app that works well, but now that we are using it realized
> that
> my wxSize() settings on my wxDialog windows are off for different
> screen resolution
> settings.
>
> I tried searching for this dilema and I dont think I found anything
> except for
> possibly doing my own 'adjustments' based on a call to wxDC::GetPPI()
> and
> calculating my own sizes based on that. Im not even sure that will
> work, but
> I wanted to ask if anyone has suggestions before I start down the
> wrong rabbit
> trail on this one.
>

_______________________________________________
wx-users mailing list
[email protected]
http://lists.wxwidgets.org/mailman/listinfo/wx-users
Author:
Date:
Subject:
 Vadim Zeitlin
 2008-07-16 00:07:48
 Re: Adjusting window sizes for different screen resolutions
On Tue, 15 Jul 2008 09:16:09 -0700 (PDT) Jeff <[email protected]> wrote:

J> I have an app that works well, but now that we are using it realized
J> that my wxSize() settings on my wxDialog windows are off for different
J> screen resolution settings.

If you use absolute sizes in your dialog, you have to redo them using
wxSizers (or another layout mechanism). If you already use sizers and just
want to make the dialogs proportionally bigger on a bigger screen, the
usual solution is to simply make them resizeable and remember the last
window position/size -- like this the user can choose whatever suits him
best.

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/

_______________________________________________
wx-users mailing list
[email protected]
http://lists.wxwidgets.org/mailman/listinfo/wx-users