Sky Software Homepage LogicNP Software Knowledge Base And FAQ

 
Contact Product Support    SearchSearch      Subscribe to the RSS feed for this forum

HOWTO : Add sub-menus/multi-level menus to the item context menu/background menu of your namespace extension

 
Subscribe to the RSS feed for this forum  Forum Index -> EZNamespaceExtensions.Net
View previous topic :: View next topic  
Author Message
Support



Joined: 18 Jul 2005
Posts: 731

Posted: Mon Nov 06, 2006 8:32 am    Post subject: HOWTO : Add sub-menus/multi-level menus to the item context menu/background menu of your namespace extension

To add multi-level menu entries in an item context menu or the background menu of the namespace extension, you should use the HasSubMenu property of ShellMenu. Use the following code in the GetMenuItems method override of your NSEFolder derived class :

ShellMenuItem parent = e.Menu.AddItem("Parent menu item");
parent.HasSubMenu = true;

parent.SubMenu.AddItem("Sub menu item 1");
parent.SubMenu.AddItem("Sub menu item 2");
Back to top
Display posts from previous:   
Forum Index -> EZNamespaceExtensions.Net All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group