From MediaMonkey Wiki
Revision as of 15:12, 23 April 2013 by Michal.kocarek (talk | contribs) (added example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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"