Solved

delphi and large fonts

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
erros on link  checking 2 90
Wincontrol not (correctly) drawn 15 47
MS Access from Delphi 31 78
Delphi Seattle StructureView color 1 21
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…

761 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