CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Loading fonts

  1. #1
    Join Date
    Sep 1999
    Posts
    102

    Loading fonts

    Hi,
    I am trying to make an option box for font selection in my app.
    In order to do that, I am using the common dialog box.
    When the app reaches the show method - I get an error that "no fonts are loaded".
    I tried looking at the msdn - but couldn't find documentation on "loading the fonts".
    Any pointers will be welcome.
    Thax.
    Dani



  2. #2
    Join Date
    Feb 2000
    Location
    london
    Posts
    16

    Re: Loading fonts

    Before the showfont line you must set the flag to a specified value, something like this:

    Dialog1.flag= cdlCFScreenFonts Or cdlCFPrinterFonts Or cdlCFBoth 'your choice
    dialog1.showfont




    ivan


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

Featured