Hello all, I’m attempting to implement an inspector panel for a RhinoCommons plug-in with Rhino 5.5.5 for Mac. When a new document is created or opened from file, the plug-in’s method ObjectPropertiesPages() gets called twice in a row, for each document. I removed any code adding the ObjectPropertyPage to the pages List, effectively leaving the method body empty except for a return statement, and it still gets called twice. Both calls are invoked by RhinoMac.Runtime.StackedDialogPageService.OnObjectPropertiesControllerAdd(uint documentSerailNumber, System.IntPtr controller) according to the call stack.
In addition, the created ObjectPropertiesPage objects do not receive some of the events and those that get called, have missing parameters.
- OnCreateParent() and OnSizeParent() get never called, the latter even if I resize the panel sidebar. This enforces the panel to have fixed width which is not good UI design.
- InitializeControls() and ShouldDisplay() do get called, but with the rhObj paramater always null, even if a Rhino Object is selected. This isn’t that bad as there are workarounds for obtaining the current selection.
Is this intended behaviour, could this be an error on my part or was the ObjectPropertyPage never fully functionally implemented in Rhino 5? I’ve tried using a floating panel instead as well, but the fact that the user can accidentally close it, introduces new issues of its own and also it unnecessarily takes up viewport space.
I’m grateful for any suggestions!
All the best, Claudio