How to capture menu level events

How to capture menu level events

Anonymous
Not applicable
216 Views
2 Replies
Message 1 of 3

How to capture menu level events

Anonymous
Not applicable
Hi,

I have created a custom menu to the Inventor addin. For this i follow the procedure given in the "CustomUI" section of the "Samples->SDK". Now, I want to re-paint my menu (by enabling/disabling) some menus depending upon some logic(an INI file values). For this I want to capture the event whenever user clicks on the top-level menu. Or any other event which is fired when user clicks on the "menu". I found one such event for "Context" menu but there is no such event for "Matrix" menu -

Can someone throw some light as to how to achieve this.

Any help will be help to me as i need this info urgently.

Regards,
Amol
0 Likes
217 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
There is no event associated with menus being displayed, (other than for the
context menu, as you mentioned). In Inventor you can set the Enabled
property of the ButtonControlDefinition at any time. Any buttons associated
with the definition will automatically be enabled or disabled based on the
value of this property.
--
Brian Ekins
Autodesk Inventor API

wrote in message news:5202553@discussion.autodesk.com...
Hi,

I have created a custom menu to the Inventor addin. For this i follow the
procedure given in the "CustomUI" section of the "Samples->SDK". Now, I want
to re-paint my menu (by enabling/disabling) some menus depending upon some
logic(an INI file values). For this I want to capture the event whenever
user clicks on the top-level menu. Or any other event which is fired when
user clicks on the "menu". I found one such event for "Context" menu but
there is no such event for "Matrix" menu -

Can someone throw some light as to how to achieve this.

Any help will be help to me as i need this info urgently.

Regards,
Amol
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks Brian for such an quick update.

I was luckier this time - I was able to address my problem using a different approach.

Regards,
Amol
0 Likes