N
Nathan Mellor
Despite all the good resources and previous posts, I admit to having some
confusion over Dpi Aware applications in the Compact Framework.
This is what I've learned so far:
1. "Normally" a Compact Framework application will look just fine, because
all the standard controls get resized automatically.
2. But custom controls, images especially, may benefit from taking advantage
3. You use res2exe -c -r hidpi.res to mark your binary as aware.
Here's my questions:
1. Is there any way to include that resource in your project instead of
using res2exe? I ask just because it is an annoyance. to run this from the
command line outside the project. Plus I don't know how I will *ever* be
able to debug it in high dpi mode, because the debugger will copy over the
unrezzed exe file.
2. Can I get the best of both worlds by allowing standard controls to resize
automatically but doing some work on my custom controls?
a). In this case, can I detect I am in a highres environment?
b). In this case, will the user still get the warning that my program is
an inferior product for an old OS (paraphrasing)?
3. Do I have to support rotation if I support high dpi?
The alternative, writing four sizing routines, is a bit overkill. I realize
this is what may be required. It will require some more time, and the
designer will cease to work, so it seems better to be done as late as
possible, at a time when one is darn sure the UI is stable and the human
factors people have no more advice to give.
Something tells me I can't be the only person who would want to leave most
standard controls to the default, yet modify some custom ones for the high
dpi. Any others have experience here?
Thanks for any advice.
Nathan
confusion over Dpi Aware applications in the Compact Framework.
This is what I've learned so far:
1. "Normally" a Compact Framework application will look just fine, because
all the standard controls get resized automatically.
2. But custom controls, images especially, may benefit from taking advantage
3. You use res2exe -c -r hidpi.res to mark your binary as aware.
Here's my questions:
1. Is there any way to include that resource in your project instead of
using res2exe? I ask just because it is an annoyance. to run this from the
command line outside the project. Plus I don't know how I will *ever* be
able to debug it in high dpi mode, because the debugger will copy over the
unrezzed exe file.
2. Can I get the best of both worlds by allowing standard controls to resize
automatically but doing some work on my custom controls?
a). In this case, can I detect I am in a highres environment?
b). In this case, will the user still get the warning that my program is
an inferior product for an old OS (paraphrasing)?
3. Do I have to support rotation if I support high dpi?
The alternative, writing four sizing routines, is a bit overkill. I realize
this is what may be required. It will require some more time, and the
designer will cease to work, so it seems better to be done as late as
possible, at a time when one is darn sure the UI is stable and the human
factors people have no more advice to give.
Something tells me I can't be the only person who would want to leave most
standard controls to the default, yet modify some custom ones for the high
dpi. Any others have experience here?
Thanks for any advice.
Nathan