Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - ShowFont Dialog
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ShowFont Dialog

 Post Reply Post Reply
Author
Message
jcollier View Drop Down
Senior Member
Senior Member


Joined: 15 February 2006
Status: Offline
Points: 250
Post Options Post Options   Thanks (0) Thanks(0)   Quote jcollier Quote  Post ReplyReply Direct Link To This Post Topic: ShowFont Dialog
    Posted: 05 March 2008 at 10:16am
Ok, this may sound like a stupid question and it's probably one I should know the answer to, however, here goes:

If I am using CommonDialog.ShowFont, how can I tell if the Cancel button has been pushed?  CancelError returns false all the time and Font returns the name of the font selected regardless of which button is pushed.

Thanks!
Back to Top
dentor View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2005
Location: France
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote dentor Quote  Post ReplyReply Direct Link To This Post Posted: 05 March 2008 at 11:08am
Hello,
 
Codejock common dialog works like standard common dialog.
To test Cancel button click, you can run the sample below:
 
Example:
 
On Error Resume Next
CommonDialog.CancelError = True
CommonDialog.ShowFont
If Err Then
        MsgBox "Cancel button was clicked"
End If

 
Back to Top
jcollier View Drop Down
Senior Member
Senior Member


Joined: 15 February 2006
Status: Offline
Points: 250
Post Options Post Options   Thanks (0) Thanks(0)   Quote jcollier Quote  Post ReplyReply Direct Link To This Post Posted: 06 March 2008 at 11:45am
Thanks!  Worked like a champ.  It's been a LONG time since I've used the commondialog.  I still should have known though.

Thanks again.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.