Jump to content

CustTool not revert to it?s previous class (None) after execution


Recommended Posts

I have a custom tool script that execute text command. Unlike my other scripts, after execution it doesn't return to the previous class 'None'. i.e. it will stay in ''A Note' class. That creates a bit of problem since some of the objects I create after that would be in a class which I don't want. I know I can try to remember to manually switch back to 'None' but why is it not acting like my other scripts? Much appreciation for a solution.

Procedure CustTool;

VAR

Name:STRING;

Result:BOOLEAN;

BEGIN

PushAttrs;

FillFore(32);

FillBack(0);

FillPat(1);

PenFore(257);

PenBack(0);

PenPat(2);

TextFont(50);

TextSize(9);

TextFace([]);

TextSpace(2);

TextJust(1);

NameClass('A NOTE');

SetTool(-200);

PopAttrs;

END;

Run(CustTool);

best regards

Sidug

Edited by SIDUG
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...