From MediaMonkey Wiki
Jump to: navigation, search

CoClass SDBMenuItem, Interface ISDBMenuItemEvents

Sub OnClick(MenuItem As SDBMenuItem)


Name Type Description
MenuItem SDBMenuItem Clicked menu item.

Event description

Event is called when user clicks on given toolbar/menu item. Event handler receives clicked menu item as the argument.

Example code

Sub OnClickHandler(MenuItem)
  ' Event code goes here...
End Sub

' Assume we have already initialized the MenuItem variable
Script.RegisterEvent MenuItem, "OnClick", "OnClickHandler"