Solved

delphi and large fonts

Posted on 1997-04-10
2
429 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

752 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