Solved

Fonts

Posted on 2003-10-31
7
266 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
ID: 9661580
ListBox1.Clear;
ListBox1.Items := Screen.Fonts;
0
 
LVL 33

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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 33

Expert Comment

by:Slick812
ID: 9663663
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
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 33

Expert Comment

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

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
code issue 8 127
Print Graphic and Text to Epson TM-T88v 12 245
Help on VBSCript Font and color 1 84
Delphi inherited method 6 67
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

785 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