shellproperties OnBeforeMenuItemClick property
Return to Introduction  Previous page  Next page
Applies to
dcShellProperties component.  

Declaration
type  
  TdcBeforeMenuItemClickEvent = procedure(Sender: TObject; FileName: String; MenuItemID: Integer; var Discard: Boolean) of object;  
 
property OnBeforeMenuItemClick: TdcBeforeMenuItemClickEvent;  

Description
The OnBeforeMenuItemClick event occurs after selecting the menu item from the context menu for shell object.  
 
The FileName parameter determines the name of the shell object, and MenuItemID determines the unique ID of selected menu item. If you would like to discard this operation - set Discard parameter to True in the event handler.  

See also
OnAfterMenuItemClick event.