Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Fonts

Posted on 2003-10-31
7
Medium Priority
?
274 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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 600 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

609 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