Julian Hangstörfer Posted July 30, 2019 Share Posted July 30, 2019 Is it possible to create a toolbar like the Snapping palette with the SDK? We would like to create a dockable toolbar with multiple custom icon buttons for our external renderer plug-in. We're currently using the ToolExtension functionality but that's not really the intended use and on top of that we also came upon an issue where Vectorworks eats up the first click event when it doesn't have focus but still displays the button animations for ToolExtensions. Quote Link to comment
Nicolas Goutte Posted July 30, 2019 Share Posted July 30, 2019 I do not think you can have so much control of the UI through the SDK. (However I do not mind if someone comes up with a solution I would not see... or know.) Quote Link to comment
JBenghiat Posted July 31, 2019 Share Posted July 31, 2019 Not really. The closest you can get is a custom tool that displays various buttons in the mode bar. You are limited to six though. You can set up tools to take action on the DoSetup event, which will run when you select the tool, but there is no way not to steal focus from the existing tool. Your best option is going to be menu commands. Quote Link to comment
Julian Hangstörfer Posted August 1, 2019 Author Share Posted August 1, 2019 Ok, thanks for the information. 0 Advanced issues found ▲ 11 hours ago, JBenghiat said: but there is no way not to steal focus from the existing tool. The focus issue is with Vectorworks in general where when you click a mode bar tool while Vectorworks is unfocused it will not trigger the click event (see attached video). I4HIIICRJk.mp4 Quote Link to comment
RussU Posted August 1, 2019 Share Posted August 1, 2019 I was going to quote your comment to reply that I'm getting the same behaviour on windows. on an unfocussed VW the buttons will highlight on roll over, but the first click is only focus one (not actually clicking the button) I don't know if it's an OS thing, but the Adobe products focus AND click in one. On the quoting side of things, I couldn't highlight your post as it said "protected by grammarly". Can someone else try to highlight and quote @Julian Hangstörfer above and see if you get the same behaviour? Quote Link to comment
Nicolas Goutte Posted August 1, 2019 Share Posted August 1, 2019 On 7/30/2019 at 5:37 PM, Julian Hangstörfer said: Is it possible to create a toolbar like the Snapping palette with the SDK? We would like to create a dockable toolbar with multiple custom icon buttons for our external renderer plug-in. We're currently using the ToolExtension functionality but that's not really the intended use and on top of that we also came upon an issue where Vectorworks eats up the first click event when it doesn't have focus but still displays the button animations for ToolExtensions. @RussU Do you mean quoting like that? I have no problem (Safari on Mac) Quote Link to comment
Julian Hangstörfer Posted August 1, 2019 Author Share Posted August 1, 2019 My quote is kind of broken for me as well. Was it Grammarly? 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.