Jump to content
Developer Wiki and Function Reference Links ×

Hiding Parameters in the OIP


Recommended Posts

Looks like this is not possible with Control Points as the parameter name is not editable...

Use vsoWidgetSetVisible(xxx,FALSE) and vsoWidgetSetVisible(yyy,FALSE) to hide the CP fields. "xxx" and "yyy" are the parameter numbers of the x and y fields. "xxx" will have a number and "yyy" will be blank, but is simply xxx+1 - and, the parameters to follow are all "+1."

Link to comment

Thanks Andrew:

I believe this does the same as SetParameterVisibility() which shows/hides parameters on the OIP. What I am looking for is a way to hide the parameters in the Properties dialog that appears when an object is first placed.

Will test though to see if it does indeed do this.

V-G.

Link to comment
What I am looking for is a way to hide the parameters in the Properties dialog that appears when an object is first placed.

If your PIO is Event-Enabled and you put those calls in the "41" event (kObjOnWidgetPrep), they'll work just fine. And, if you test for the handle of an actual object, you can show or hide things specifically in the Prefs dialog.

Link to comment
Looks like this is not possible with Control Points as the parameter name is not editable...

Any tricks?

V-G.

Even easier than Andy's suggestion, the same prefix tricks apply when using the Alternate Name field, so give your CP an alternate name of __Something, and it will stay hidden.

If you want a field not to show up in criteria dialogs, give it an alternate field name of __NNA_DO_NOT_CHANGE

HTH,

Josh

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