Difference between revisions of "ISDBMenuItem::OnClickFunc"

From MediaMonkey Wiki
Jump to: navigation, search
(Supplanted by ISDBScriptControl::RegisterEvent)
(added deprecation note + info about OnClick event.)
 
Line 3: Line 3:
 
===Property description===
 
===Property description===
  
Name of the function that is called when the item is clicked. The function is expected to be in 'UseScript' file. There is one parameter passed to the function - this menu item ([[SDBMenuItem]] object).
+
Name of the function that is called when the item is clicked. The function is expected to be in [[ISDBMenuItem::UseScript|UseScript]] file. There is one parameter passed to the function - this menu item ([[SDBMenuItem]] object).
  
===Comments===
+
'''Deprecated''': Use the [[ISDBMenuItemEvents::OnClick|OnClick]] event registration instead.
 
 
This property has been supplanted by the [[ISDBScriptControl::RegisterEvent]] method.
 
  
 
===Example code===                     
 
===Example code===                     
Line 13: Line 11:
 
'The function to be called can look like:
 
'The function to be called can look like:
  
Sub OnMenuItemClick( Item)
+
Sub OnMenuItemClick(Item)
 
   ' Some code here
 
   ' Some code here
 
End Sub
 
End Sub

Latest revision as of 15:06, 23 April 2013

CoClass SDBMenuItem, Interface ISDBMenuItem

Property Get/Let OnClickFunc As String


Property description

Name of the function that is called when the item is clicked. The function is expected to be in UseScript file. There is one parameter passed to the function - this menu item (SDBMenuItem object).

Deprecated: Use the OnClick event registration instead.

Example code

'The function to be called can look like:

Sub OnMenuItemClick(Item)
  ' Some code here
End Sub