Link to home
Start Free TrialLog in
Avatar of michaelhiggins
michaelhiggins

asked on

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 ;-)
Avatar of Lischke
Lischke

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
ASKER CERTIFIED SOLUTION
Avatar of Epsylon
Epsylon

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Avatar of michaelhiggins

ASKER

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

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

Michael
You can use TForm.PixelsPerInch to determine this

Small font: 96
Large font: 120

Eps.
Remind that there are more possibilities since you can set any fontsize using the 'Other' option in Display properties > Settings > Advanced.
Does this help you?
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.

https://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
https://www.experts-exchange.com/jsp/zonesAll.jsp
 
Thank you,
Moondancer
Moderator @ Experts Exchange