Print Page | Close Window

ShowFont Dialog

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=9799
Printed Date: 16 November 2024 at 10:25am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ShowFont Dialog
Posted By: jcollier
Subject: ShowFont Dialog
Date 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!



Replies:
Posted By: dentor
Date 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

 


Posted By: jcollier
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net