Results 1 to 3 of 3

Thread: commondialog.showfont - doesn't work !??!

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    chicago (hope)
    Posts
    146

    Thumbs down

    when i use the font dialog, there is a message "no fonts found. install fonts in the control bar".

    why does this not work???

    every other program shows all fonts...

  2. #2
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926
    Pressing F1 could help sometimes. I found this:

    Remarks

    Before you use the ShowFont method, you must set the Flags property of the CommonDialog control to one of three constants or values: cdlCFBoth or &H3, cdlCFPrinterFonts or &H2, or cdlCFScreenFonts or &H1. If you don't set Flags, a message box is displayed advising you that "There are no fonts installed," and a run-time error occurs.

  3. #3
    Guest
    Basically what they're saying is the you must set the Flags property to either PrinterFonts, ScreenFonts or both before you can display the dialog. The values of setting them are listed in Frans C's post.

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