English 中文(简体)
How Do I Handle Windows 7 s 125% or 150% Magnification (Delphi)
原标题:

Windows 7 has added on its Control Panel, Appearance and Personalization, Display setting, an ability to Magnify the text and other items by 125% or 150%.

When that is done, some of the contents of the Forms and Dialogs of my Delphi 2009 program get cut off.

What changes do I need to make to ensure that all my forms and dialogs will look fine under any magnification setting on Windows 7.

最佳回答

It sounds like you re referring to the text size setting, which has existed in various forms in Windows for years, and Delphi forms interactions with this setting and their automatic scaling. I haven t got Windows 7 here to check, so I m basing this only on your description.

Problems caused by this are very common in Delphi applications. You may want to try setting the form s Scaled property to false, but read the information in these links first - doing that might not really be the best solution, but it depends on your program.

Try these links:

  • This very useful article explains how common this is by saying, "Does this sound familiar? You ve finished that elegant form and polished the look and feel of the controls, and you send it off to your end user. And the first thing the user complains about is that the form is unreadable on their Windows PC. They complain that the text labels are chopped off, the edit controls run past the edge of the form, and the bottom of the form isn t even visible. What happened?". Good thing it has a solution, hey :)

  • This delphi.about.com article is also worth reading.

Hope that helps!

David

问题回答

暂无回答




相关问题
determining the character set to use

my delphi 2009 app has a basic translation system that uses GNUGetText. i had used some win API calls to prepare the fonts. i thought it was working correctly until recently when someone from Malta ...

Help with strange Delphi 5 IDE problems

Ok, I m going nuts here. For the last (almost) four years, I ve been putting up with some extremely bad behavior from my Delphi 5 IDE. Problems include: Seemingly random errors in coride50.bpl ...

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How convert string to integer in Oxygene

In Delphi, there is a function StrToInt() that converts a string to an integer value; there is also IntToStr(), which does the reverse. These functions doesn t appear to be part of Oxygene, and I can ...

Quick padding of a string in Delphi

I was trying to speed up a certain routine in an application, and my profiler, AQTime, identified one method in particular as a bottleneck. The method has been with us for years, and is part of a "...

热门标签