Solved

Fonts

Posted on 2003-10-31
7
268 Views
Last Modified: 2013-12-03
Hi,

A quick question. How can i get the list of all installed fonts on a machine into a listbox. Thanks
0
Comment
Question by:Prototype_T-104
  • 5
  • 2
7 Comments
 
LVL 34

Expert Comment

by:Slick812
ID: 9661580
ListBox1.Clear;
ListBox1.Items := Screen.Fonts;
0
 
LVL 34

Expert Comment

by:Slick812
ID: 9661588
this is more better
ListBox1.Items.Assign(Screen.Fonts);
0
 

Author Comment

by:Prototype_T-104
ID: 9662929
Thanks alot,but just one more question. How to apply the selected font to a Memo...it would be inpossible to go like If ListBox1.ItemInedx = 1.... and so on, is there a quicker way?! Thanks alot Slick812!!
0
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 
LVL 34

Expert Comment

by:Slick812
ID: 9663663
OK, I have not tested this but

Memo1.Font.Name := ListBox1.Items[ListBox1.ItemInedx];
0
 
LVL 34

Accepted Solution

by:
Slick812 earned 150 total points
ID: 9663666
Memo1.Font.Name := ListBox1.Items[ListBox1.ItemIndex];
0
 

Author Comment

by:Prototype_T-104
ID: 9664148
Thanks Slick812 you halped me very very much. Thank you!!
0
 
LVL 34

Expert Comment

by:Slick812
ID: 9664948
you are very welcome
good luck with your project
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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 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…

830 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