Jump to content
Developer Wiki and Function Reference Links Read more... ×
Sign in to follow this  
Jack_1983

Disable Menu Item

Recommended Posts

Hi all,

I'm stuck with a simple problem (or so I think), but I can't seem to find a solution.

By following the Sample projects which come with the SDK, I was able to set-up a menu chunk with 4 menu items in it.

Now I would like to disable a single item at runtime, but I can't understand how to achieve this. The menu plug-in I defined is practically the same as the one in the "VWUI Dialog Samples" project.

The SDK manual simply states that some particular events (by the way, the kMenuCheckHilite action is what I should check, I think) are dispatched by VW by calling the main plugin function (plugin_main) but this is not what is happening.

I also tried to override the OnDefaultEvent function of the Event Sink class, but that is simply never called.

Anyone of you can point me to the right direction?

Thanks in advance

Jack

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

 

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.

×