Disabling font size contol by Windows in an application

The small fonts / large fonts option in the Control Panel / display properties/ settings prodcues weird results in my application. How can I disable it?

(This time I promise to hit the right button to give credit where it is due ;-)
michaelhigginsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

LischkeCommented:
Sorry to say that, but you try to work on the wrong end. What would happen when every developer disables a feature of Windows just to have its program correctly running? You should design your application good enough so that it runs perfectly with every font size. I know this is hard (we had to hack VCL units to got it as we needed it), but by leaving enough space for each label etc. it is possible to maintain a proper layout.

Ciao, Mike
0
EpsylonCommented:
TForm1.Scaled := false;

Epsylon.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
LischkeCommented:
Epsylon, Epsylon, ts, ts, ts ... Your suggestion is neither an answer to the question here nor does it solve the problem with different font sizes. Property Scaled is only useful for windows to scale to specific sizes, but not for fonts.

Ciao, Mike
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

michaelhigginsAuthor Commented:
The problem that I have is the rather irregular reaction of the different components of my program, to the different sizes of fonts. If I could detect when large fonts has been selected then I could perhaps cope with it.

Michael

0
EpsylonCommented:
It solves the Small/Large font problem. Am I missing something???????
0
michaelhigginsAuthor Commented:
The problem is *How* to detect if small or large fonts have been selected. Is there some flag i can use?

Michael
0
EpsylonCommented:
You can use TForm.PixelsPerInch to determine this

Small font: 96
Large font: 120

Eps.
0
EpsylonCommented:
Remind that there are more possibilities since you can set any fontsize using the 'Other' option in Display properties > Settings > Advanced.
0
EpsylonCommented:
Does this help you?
0
MoondancerCommented:
This question was awarded, but never cleared due to the JSP-500 errors of that time.  It was "stuck" against userID -1 versus the intended expert whom you awarded.  This corrects the problem and the expert will now receive these points; points verified.

Please click on your Member Profile and select "View Question History" to navigate through any open or locked questions you may have to update and finalize them.  If you are an EE Pro user, you can also choose Power Search to find all your open questions.

This is the Community Support link, if help is needed, along with the link to All Topics which reflects many TAs recently added.

http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
http://www.experts-exchange.com/jsp/zonesAll.jsp
 
Thank you,
Moondancer
Moderator @ Experts Exchange
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Fonts Typography

From novice to tech pro — start learning today.