Jump to content
Sam Jones

OIP indenting not working in 2020

Recommended Posts

I can't get "vsoWidgetSetIndLvl(OutWidgID, indentLevel);"  to work.  Nothing indents in the OIP.  Anybody getting this command to work?  Should I file a bug report?

 

 

Share this post


Link to post

Additionally,  the exact command works in 2019.

I use the exact same code in my WidgetPrep routine in 2019 and 2020, but in 2020 it does not work.

Share this post


Link to post

I'm not seeing any issues or changes for 2020. The code is basically

IF vsoPrmName2WidgetID('', paramName, widgID) THEN
     vsoWidgetSetIndLvl(widgID, indents);

 

Share this post


Link to post

I'm not seeing any issues either, but it might depend on where in the code you are calling it. Should be in kObjOnInitXProperties (event 5).

Share this post


Link to post
2 hours ago, Julian Carr said:

I'm not seeing any issues either, but it might depend on where in the code you are calling it. Should be in kObjOnInitXProperties (event 5).

 

Interesting.  I have always put the code in kObjOnWidgetPrep, and it has always worked.  I use it with vsoWidgetSetVisible which has to be in the kObjOnWidgetPrep event, because I turn visibilities off based on other OIP actions.

 

I will move it and see what happens.

Share this post


Link to post
2 hours ago, Julian Carr said:

I'm not seeing any issues either, but it might depend on where in the code you are calling it. Should be in kObjOnInitXProperties (event 5).

 

Really???  All of my tools have indenting and enabling controls in kObjOnWidgetPrep (event 41) and, other than the issues in a build or 2 of 2020, I've had no issues.

 

Share this post


Link to post

Sorry, I meant to say this is where it needs to be if you are using collapsing widget separators. Otherwise, it can be used in different places.

Share this post


Link to post

I tried moving it.  No joy.

I upgraded to build 513812.  No joy.

 

I haven't a clue as to how to track this one down.

 

3 hours ago, JBenghiat said:

IF vsoPrmName2WidgetID('', paramName, widgID) THEN vsoWidgetSetIndLvl(widgID, indents);

I can't imagine that he "If" test makes a difference, but good error handling for PIO templates

 

If anybody hears of anything I can look for or test, please let me know.

 

 

Share this post


Link to post

Well.   ... Reloading the workspace solved the problem.  ?? !  Prior to that quitting and restarting VW did nothing.  Another example of how much I don't understand about what is going on under the hood, but a mysterious solution is way better than none.

Share this post


Link to post

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.


 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...