Solved

delphi and large fonts

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
font missing in acrobat 3 64
Problem with Frankling Gothic Book font 5 80
Help on project with Soap 10 44
Dev Express grid collapse 2 34
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 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…
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…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

759 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now