Is there a way I can display all tools displayed in toolbar, in context menu? Basically I am trying to duplicate toolbar items in a context menu.
Thanks in advance
-Se
Se,
You can set up a PopupMenuTool, containing the same tools in your toolbar, and then use that PopupMenuTool as a context menu.
The following article from our onine help documentation of NetAdvantage for .NET 2009 Volume 2 provides more information on using a PopupMenuTool as a context menu:Display a Menu as a Context Menu
Hi Vince, Thanks for the quick reply. I already checked the article you have mentioned. I dynamically change my toolbar item(s) visibility all the time. In context menu I would like to display only items that are enabled and visible in toolbar when user right clicks. right now I am creating a context menu and handling events manually. I am just wondering is there an easy way to do this.
Thanks,
Thanks Vince. Appreciate it
In whatever logic you use to control the visibility of tools in your toolbar, I recommend that you also set the visibility of the corresponding tools in the PopupMenuTool that you're using for your context menu.