Sky Software Homepage LogicNP Software Knowledge Base And FAQ

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

HOWTO : Handle double-clicking of items in the 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: Thu Mar 20, 2008 3:11 am    Post subject: HOWTO : Handle double-clicking of items in the namespace extension

When the user double-clicks or presses 'Enter', the GetMenuItemsDefault method of NSEFolder is called. The default implement of this method does the following : It adds a menu item with verb "explore" if the selected item is a folder and a menu item with the verb "open" if it is a non-folder. The corresponding OnOpen or OnExplore methods of NSEFolder are called immediately afterwards. The default implementation of OnExplore attempts to browse to the selected folder. To handle the double-click or pressing of "Enter" key on a non-folder, you must override the OnOpen method.

Note that you can also override the GetMenuItemsDefault method and add your own custom menu item. Make sure that the added menu item is set as the default by setting the DefaultItem property to True. The OnExecuteMenuItem method (or one of the standard OnCopy, OnPaste, etc methods if the added menu item has a standard verb) is called immediately afterwards.
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