Results 1 to 6 of 6

Thread: Common Dialog .ShowFont - "There Are No Font's Installed" Error?

  1. #1

    Thread Starter
    Frenzied Member wpearsall's Avatar
    Join Date
    Feb 2002
    Location
    England / UK
    Posts
    1,065

    Common Dialog .ShowFont - "There Are No Font's Installed" Error?

    ---------------------------
    Fonts
    ---------------------------
    There are no fonts installed.
    Open the Fonts folder from the Control Panel to install fonts.
    ---------------------------
    OK
    ---------------------------
    I get this error when i try to use the common dialog's show font function.

    is it something i need to add to the flag's or something for it to make the common dialog's show font to work?

    anyone wanna give a little helpin hand w./ ?

    TNX
    Wayne

  2. #2
    Hyperactive Member Rocketdawg's Avatar
    Join Date
    Feb 2003
    Location
    Back in the doghouse
    Posts
    294

    Smile Set Your Flags

    You just need to set the flags. I wrestled with this one for hours
    not to long ago!

    Private Sub Command1_Click()

    With CommonDialog1
    .Flags = cdlCFScreenFonts Or cdlCFForceFontExist Or cdlCFPrinterFonts
    End With
    CommonDialog1.ShowFont
    End Sub

    BTW There are only about 15(!) Flags you can set for showfont.
    The other you might want is : cdlCFTTOnly. Shows only True
    Type fonts.

  3. #3

    Thread Starter
    Frenzied Member wpearsall's Avatar
    Join Date
    Feb 2002
    Location
    England / UK
    Posts
    1,065
    where did u find the flags for the common dialog?

    [i searched the msdn library, but it didnt return ne value's for the common dialog etc]

    i no theres a post somewhere in this forum for the flag's, but i cant find that 1 either [god knows why :shrug:]
    Wayne

  4. #4
    Hyperactive Member Rocketdawg's Avatar
    Join Date
    Feb 2003
    Location
    Back in the doghouse
    Posts
    294

    cdl Flags

    They're all listed in PROGRAMMING VISUAL BASIC 6.0 by
    Francesco Balena. It's the only VB book I've got that doesn't
    have dust on it.

    If you're looking for other flags, let me know and I'll post them
    for you.
    RD

  5. #5

    Thread Starter
    Frenzied Member wpearsall's Avatar
    Join Date
    Feb 2002
    Location
    England / UK
    Posts
    1,065
    sure thing, post away
    Wayne

  6. #6
    Member
    Join Date
    Feb 2003
    Location
    In a castle in the sky
    Posts
    45
    They are in msdn too, search for flags property and it should come up

    Dogsby

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width