Solved

delphi and large fonts

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Printing text with Windows Picture Manager. 18 88
Connection between libmysql.dll and MySQL Versions 7 99
Delphi...Split view - idea? 1 68
DBGrid or StringGrid ? 6 90
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
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 quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

809 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