OberonPlace.com Forums

OberonPlace.com Forums (http://forum.oberonplace.com/index.php)
-   Corel Photo-Paint VBA (http://forum.oberonplace.com/forumdisplay.php?f=17)
-   -   Requiring a Mask (http://forum.oberonplace.com/showthread.php?t=6301)

PAnderson 15-05-2009 09:24

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

shelbym 21-05-2009 11:20

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


All times are GMT -5. The time now is 05:11.

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