Solved

Fonts

Posted on 2003-10-31
7
264 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 33

Expert Comment

by:Slick812
Comment Utility
ListBox1.Clear;
ListBox1.Items := Screen.Fonts;
0
 
LVL 33

Expert Comment

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

Author Comment

by:Prototype_T-104
Comment Utility
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 33

Expert Comment

by:Slick812
Comment Utility
OK, I have not tested this but

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

Accepted Solution

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

Author Comment

by:Prototype_T-104
Comment Utility
Thanks Slick812 you halped me very very much. Thank you!!
0
 
LVL 33

Expert Comment

by:Slick812
Comment Utility
you are very welcome
good luck with your project
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 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

6 Experts available now in Live!

Get 1:1 Help Now