VectorGeek Posted May 19, 2016 Share Posted May 19, 2016 So, SetParameterVisibility() works great, however the first time an object is placed, when the "Object Properties" opens, all of the hidden parameters are visible. Not a deal-breaker, but I'd prefer they were hidden always. Is there a way to do this? Thanks! V-G. Quote Link to comment
JBenghiat Posted May 19, 2016 Share Posted May 19, 2016 The simplest method is to define the parameter as always hidden. Prefixing the param name with a single underscore makes it read only, and a double underscore makes it hidden. -Josh Quote Link to comment
VectorGeek Posted May 19, 2016 Author Share Posted May 19, 2016 Brilliant! Many thanks Josh. V-G. Quote Link to comment
VectorGeek Posted May 24, 2016 Author Share Posted May 24, 2016 Looks like this is not possible with Control Points as the parameter name is not editable... Any tricks? V-G. Quote Link to comment
C. Andrew Dunning Posted May 24, 2016 Share Posted May 24, 2016 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." Quote Link to comment
VectorGeek Posted May 24, 2016 Author Share Posted May 24, 2016 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. Quote Link to comment
C. Andrew Dunning Posted May 24, 2016 Share Posted May 24, 2016 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. Quote Link to comment
JBenghiat Posted May 25, 2016 Share Posted May 25, 2016 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 Quote Link to comment
VectorGeek Posted June 1, 2016 Author Share Posted June 1, 2016 Thanks Andy and Josh. Got it working with the __NNA_DO_NOT_CHANGE trick. V-G Quote Link to comment
Recommended Posts
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.