Results 1 to 6 of 6

Thread: Common Dialog

  1. #1

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    Common Dialog

    I'm using the Common Dialog to select a font, but I don't want the user to be able to select attributes such as bold, italic, etc.

    Is there a way to do this?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Add the cdlCFNoSimulations flag to the Flags property
    VB Code:
    1. CommonDialog1.Flags = cdlCFNoSimulations + cdlCFBoth
    Best regards

  3. #3

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    that doesn't seem to work for all fonts?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  4. #4
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    That's strange! What fonts doesn't it work for?

  5. #5

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    For Times New Roman, it shows all of them (bold, italic, etc) and for others like News Gothic MT, it only shows bold.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  6. #6
    Frenzied Member nishantp's Avatar
    Join Date
    Jan 2001
    Location
    Where you least expect me to be
    Posts
    1,375
    One option that you have (very anoying to user) is to simply ignore that Bold, and Italic options in the commondialog. Let the user choose what he wants, but dont do anything with Bold and Italics. I hope you know what i mean.
    You just proved that sig advertisements work.

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