Re: Dialog size in pixel
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Wed, 25 Jun 2008 00:30:12 -0400
Note that those of us who are visually handicapped (read: anyone over the age of 40) find
it nearly impossible to live in a world where the font sizes are not under the end user's
control. In CE, in particular, the use of the FlySpeck 3 font is the way most programmers
deal with the lack of screen real estate.
joe
On Fri, 20 Jun 2008 09:34:41 -0700, Henryk Birecki <soaringpilot@xxxxxxxxxxxxx> wrote:
I also have many dialogs in a WinCE application. I think you "hit theJoseph M. Newcomer [MVP]
nail on the head with 'If user change de display settings "DPI" ' this
is exactly why dialogs are specified in font units rather than pixels.
If a user changes DPI, dialog size stays the same. You should scale
your bitmap according to the DPI settings. Do you expect DPI change
during program operation, while one of the dialogs is displayed?
As to relationship between pixels and font units, I just experimented
a bit to get it right for the font size I am using.
Cheers,
Henryk Birecki
Erakis <Erakis@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi, I'm programming an application for Windows CE.
I have to draw/set a bitmap as background of my dialog.
This is like a skinned application. For that, I need to set the dialog size
to 340x234 "pixels" and not"Base unit" like resource do.
Also I will have to add others components on this dialog like
(Button,TextBox, Label, ListBox, etc...) at a specified position in pixels
sothat they fit on the background image.
If user change de display settings "DPI", the dialog size will changeand I
don't want that ! Because the position/dimension of bitmaps onmy dialog will
no longer fit.
Is someone have any clues/suggestion to help me with that problem ?
Regards,
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- References:
- Re: Dialog size in pixel
- From: Henryk Birecki
- Re: Dialog size in pixel
- Prev by Date: Re: Dialog size in pixel
- Next by Date: Re: Dialog size in pixel
- Previous by thread: Re: Dialog size in pixel
- Next by thread: Re: Dialog size in pixel
- Index(es):
Relevant Pages
|