OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > Corel Photo-Paint VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 15-05-2009, 09:24
PAnderson PAnderson is offline
Member
 
Join Date: Nov 2003
Posts: 47
Default Requiring a Mask

I've tried to figure this out, but I can't! I want to display a message box that tells the user to make a selection/mask first...like the one you get when you forget to make a mask before using the Bevel effect. What would be the If statement to determine this?

TIA
Patti
Reply With Quote
  #2  
Old 21-05-2009, 11:20
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,769
Blog Entries: 9
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default Test for Mask

I don't code in PHOTO-PAINT often but I saw this was still unanswered so I thought I would try to lend a hand. I think the easiest way would be to use the IsEmpty. So something like this:
Code:
Sub PromptForMask()
    If ActiveDocument.Mask.IsEmpty Then
        MsgBox "Please Create a Mask"
    End If
End Sub
Hope that helps,

-Shelby
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ability to print mask in PP without having to save fungel Feature requests/wishlist 0 24-01-2009 09:46
Mask Fill dvlee00 Corel Photo-Paint VBA 1 25-10-2007 07:28
Unsharp Mask dialog box geHucKa CorelDRAW/Corel DESIGNER VBA 3 04-07-2006 21:42
Unsharp Mask dialog box geHucKa CorelDRAW/Corel DESIGNER VBA 0 03-07-2006 15:02
Determining whether a bitmap has a color mask applied to it pmeier CorelDRAW/Corel DESIGNER VBA 3 13-07-2003 23:46


All times are GMT -5. The time now is 01:48.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com