Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4165
BeforeMiniToolbarShown - Getting Ref To Tools?
posted

Hi,

So I have a popup tool that I created with the same tools that I have on a toolbar. When they right click on an object (in this case, a Node in tree) I want to hide certain menu options on the popup menu, not the toolbar.

So I what I did so far with this before event:

PopupMenuTool t = (PopupMenuTool)e.PopupTool;

if(x y and z) { t.Tools["tool1"].InstanceProps.Visible = DefaultableBoolean.False (or true);

The issue is though that it does not take the first popup..in other words the right click always has the values from the last time I right clicked? I think I am missing something =).

 

Thanks for the help.