Runtemund Posted October 21 Share Posted October 21 How can I enable/disable menu item programmatically? I already read this: https://github.com/Vectorworks/developer-sdk/blob/main/Info/Menu General Info.md I understand that this might be not possible with "basic" menu items, but with menu chunks. But how can I deal with this? I find flags for check/uncheck, but not enable/disable. Has anybody an idea? Quote Link to comment
Stefan Bender Posted October 22 Share Posted October 22 You have some control over basic menu items by setting the appropriate needs/needsnot flags of the menu's SMenuDef. I don't know what is possible for chunk items. Quote Link to comment
Runtemund Posted October 22 Author Share Posted October 22 Hi Stefan, I use needs/needsnot successfully for the intended base behaviour. I also tried to change this values, but Vectorworks don't recognise the change... Maybe I need to inform via a kind of notification, but how? 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.