Sam Jones Posted October 18, 2019 Share Posted October 18, 2019 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? Quote Link to comment
Sam Jones Posted October 18, 2019 Author Share Posted October 18, 2019 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. Quote Link to comment
C. Andrew Dunning Posted October 18, 2019 Share Posted October 18, 2019 For me, it has depended on the build. The issue has come and gone...and, I don't remember the build in which I first saw it. Quote Link to comment
JBenghiat Posted October 18, 2019 Share Posted October 18, 2019 I'm not seeing any issues or changes for 2020. The code is basically IF vsoPrmName2WidgetID('', paramName, widgID) THEN vsoWidgetSetIndLvl(widgID, indents); Quote Link to comment
Julian Carr Posted October 18, 2019 Share Posted October 18, 2019 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). Quote Link to comment
Sam Jones Posted October 18, 2019 Author Share Posted October 18, 2019 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. Quote Link to comment
C. Andrew Dunning Posted October 18, 2019 Share Posted October 18, 2019 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. Quote Link to comment
Julian Carr Posted October 19, 2019 Share Posted October 19, 2019 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. Quote Link to comment
Sam Jones Posted October 19, 2019 Author Share Posted October 19, 2019 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. Quote Link to comment
Sam Jones Posted October 19, 2019 Author Share Posted October 19, 2019 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. 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.