resizing controls for different Windows DPIs
I asked this question some time ago but didn't get any replies so I'll try
again
I have programs written using Win32lib, all the controls are sized to look
good on my 96dpi screen, when I run them on my laptop which is set to 120dpi the
text becomes too large for its container (buttons, text boxes etc). I had a peek
at some commercial (and freeware) programs using WinSpy and the sizes of all the
containers (including the window itself) have different sizes on 96 and 120dpi.
Even WinSpy itself does this..
I tried wrapping the stuff to use dialog units instead of pixels which works
sometimes(!) but it's not reliable enough, I also tried using Fixed fonts but
these also grow with higher DPI. I see this problem as a major drawback to
creating EU applications which will be passed to other users who could be using a
different DPI to you, especially as displays improve and the DPIs available
increase. The end result is your app looks unprofessional and even could be
unusable.
How do other programs (commercial or otherwise) cope with this? and is there any
way we can use the same technique with Euphoria? (unless it is just getting the
DPI the system is using and having a long list of different sizes/positions for
every control!!
)
regards PeteS
|
Not Categorized, Please Help
|
|