about eventClose

Comments and discussions about 8bf plugins which can be use in various applications like Photoshop, Paint Shop Pro or Photo-Paint
Post Reply
Jiro Imaizumi

about eventClose

Post by Jiro Imaizumi »

I'm creating Photoshop automation plugin.

I have some question about eventClose.
When I call eventClose, the modal dialog which I created lost modal.

What is the problem??

thanks

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

OPErr playeventClose(void)
{
PIActionDescriptor result = NULL;
OPPError error = kSPNoError;
PIActionDescriptor desc = NULL;

error = sPSActionDescriptor->Make(&desc);

if (!error)
error = sPSActionDescriptor->PutEnumerated(desc,
keySaving,
typeYesNo,
enumNo);

if (!error)
error = sPSActionControl->Play(&result,
eventClose,
desc,
plugInDialogSilent);

if (result != NULL) sPSActionDescriptor->Free(result);
if (desc != NULL) sPSActionDescriptor->Free(desc);
return error;
}

Post Reply