Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
 
 
Old Pages
 
Old Index
Site Map
What's New
 
Books
How To
Tips & Tricks
Tutorials
Stories
Performance
Essays
Links
Q & A
New in VB6
Free Stuff
Pictures
 
 
 
 
 
 
 
TitleLet the user select a TrueType font
Keywordsselect font, TrueType, common dialog
CategoriesControls, Graphics
 
Sometimes you need to use a TrueType font. For example, you can only rotate TrueType fonts. To let the user select only these fonts, set the cdlCFTTOnly value in the Common Dialog control's Flags property.
 
' Initialize the dialog's properties.
    ...
dlgFont.Flags = cdlCFScreenFonts Or cdlCFTTOnly
dlgFont.CancelError = True
On Error Resume Next
dlgFont.ShowFont
If Err = cdlCancel Then Exit Sub

' Use the dialog's properties.
    ...
 
 
Copyright © 1997-2001 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated