R
Ray Mitchell
Hello,
I have developed several GUI applications that need to run platforms with
varying resolutions and font settings. I originally thought, obviously
mistakenly, that for any given GUI window developed by merely dragging
different controls from the Visual Studio toolbox onto the GUI window,
everything would merely scale properly when moved to a different platform.
What I am finding, however, is that in many cases this only happens in a very
minimal and unsatisfactory way. While looking perfect on the development
platform, on a different platform sometimes the buttons are so big they
overlap other controls. In other cases some of the other controls completely
cover the buttons. In some cases the text boxes are no longer wide enough to
display the complete text. Often the GUI is virtually unusable because of
this behavior. Sometimes even on different platforms with the same
resolutions and fonts the GUI looks totally different. The worst looking
display is when I run my GUI on WinXP when running in a Linux VMware virtual
machine - even though the resolution and fonts are the same as on the
development platform. However, most commercial applications don't seem to
care what platform the run on; they look the same.
I believe I could possibly solve this by run-time calculating the desired
relative positions and sizes of all the controls and positioning them that
way, but that seems like a pretty radical approach. I suppose I could also
custom tailor a version for each platform I know that will be used but I
can't believe this is how it should be done. I'm using buttons, text boxes,
group boxes, split containers, an a lot of other controls. Any suggestions
are welcome.
Thanks,
Ray
I have developed several GUI applications that need to run platforms with
varying resolutions and font settings. I originally thought, obviously
mistakenly, that for any given GUI window developed by merely dragging
different controls from the Visual Studio toolbox onto the GUI window,
everything would merely scale properly when moved to a different platform.
What I am finding, however, is that in many cases this only happens in a very
minimal and unsatisfactory way. While looking perfect on the development
platform, on a different platform sometimes the buttons are so big they
overlap other controls. In other cases some of the other controls completely
cover the buttons. In some cases the text boxes are no longer wide enough to
display the complete text. Often the GUI is virtually unusable because of
this behavior. Sometimes even on different platforms with the same
resolutions and fonts the GUI looks totally different. The worst looking
display is when I run my GUI on WinXP when running in a Linux VMware virtual
machine - even though the resolution and fonts are the same as on the
development platform. However, most commercial applications don't seem to
care what platform the run on; they look the same.
I believe I could possibly solve this by run-time calculating the desired
relative positions and sizes of all the controls and positioning them that
way, but that seems like a pretty radical approach. I suppose I could also
custom tailor a version for each platform I know that will be used but I
can't believe this is how it should be done. I'm using buttons, text boxes,
group boxes, split containers, an a lot of other controls. Any suggestions
are welcome.
Thanks,
Ray