Jump to content

Turning off classes


Recommended Posts

Try this short script. It will toggle all the classes, regardless of how many you have. The Class PopUp menu in the Data Display Bar does not update the little icons on the left properly, unless you open the Class... dialogue box and then close, but the script works.

You can put the script in a script palette, or make it a Menu PIO and assign a shortcut key to it.

I hope this is what you were asking for.

Raymond

code:

Procedure ToggleClassVisibility;

{ Toggle the visibility of every class.

Remember, the active class stays visible.

15 Oct 2003 - Raymond Mullin }

VAR

I, ClassCnt :LongInt;

ClassName :String;

BEGIN

ClassCnt := ClassNum;

I := 0;

while (I<ClassCnt) do begin

I := I + 1;

ClassName := ClassList(I);

case GetCVis(ClassName) of

0: HideClass(ClassName); { Visible }

-1: ShowClass(ClassName); { Hidden }

2: begin end; { Grayed }

end; { case }

end; { while }

END;

Run(ToggleClassVisibility);
[/code]

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