Solved

delphi and large fonts

Posted on 1997-04-10
2
432 Views
Last Modified: 2013-12-02
I have written a delphi app in 640*480 resolution that looks nice also in higher resolutions. When the user chooses to work in 800*600 with large fonts the forms don't look well anymore. When you redesign the forms in 800*600 large fonts, they don't look well in resolutions that don't use large fonts. Does anyone know a good solution to design forms that look good in every resolution and with large and small fonts?
0
Comment
Question by:evers
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
OAM earned 50 total points
ID: 1335285
I have created the following procedure to handle that problem:

Procedure LOut(Form : TForm; Label : TLabel; Text : String);
Begin
  With Form.Label Do
     Begin  
       TextHeight:=Canvas.TextHeight(Text);
       TextWidth:=Canvas.Textwidth(Text);
       Caption:=Text;
     End;
End;

This works fine for me, maybe you can use it also??
 
0
 
LVL 2

Expert Comment

by:javiertb
ID: 1335286
Take a look at one of those TI's (I think it's Ti2861) and you'll find everything concerning displaying fonts and components with different screen resolutions.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month7 days, 11 hours left to enroll

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question