Jump to content

Hide Selected Class


Recommended Posts

Here is a script that will hide the class of an object you click on. The script finds the object, finds out what class the object in on and then turns that class invisible.

I would post a the file of the plug-in, but the file manager won't let me, so you'll have to make your own tool and icon for this.

Script---------------------------------

Procedure HideClassSelected;

{written by Jonathan Pickup 2000, Edited 2007}

VAR

h2obj, h2obj2 : HANDLE;

ClassName : STRING;

x,y : REAL;

Continue : BOOLEAN;

BEGIN

DSelectAll;

Getpt(X,y);

H2Obj := PickObject(x,y);

IF h2obj<>NIL THEN

BEGIN

ClassName := GetClass(h2obj);

IF GETTYPE(h2obj)=11 THEN

BEGIN

SetSelect(h2obj);

DoMenuTextByName('Group Navigation Chunk',1);

h2obj2:=PickObject(x,y);

ClassName := GetClass(h2obj2);

IF ClassName='None' THEN SYSBEEP

ELSE HideClass(className);

DoMenuTextByName('Group Navigation Chunk',2);

END

ELSE IF ClassName='None' THEN SYSBEEP

ELSE HideClass(className);

END

ELSE sysbeep;

ReDrawAll;

END;

Run(HideClassSelected);

-----------------------------------

Edited by archoncad
Link to comment

If you want to post your own information, with a copywrite symbol, that is perfectly fine.

What does Copyright mean in practice in this situation then? What licence do you grant us to use this material, other than to admire it? Pat Stanford has included a GNU licence in his copyright text over on the General Discussion forum - which looks sensible. I suggest you make this a general condition for posting scripts.

Link to comment

People add copyright symbols to their scripts, for example. If that person wants to share their script with someone else, they are within the confines to do such. What is not allowed, is for people to post scripts (or other material) which they do not have permission to distribute.

Whatever the creator wants to do inside the script, by way of protection, specific text, licensing, etc is up to them. This is not something NNA will, or should monitor. NNA's role is to provide a community for everyone to share information they are willing to share.

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...