ISDBUIButton::OnClickFunc: Difference between revisions

From MediaMonkey Wiki
Jump to navigation Jump to search
No edit summary
 
(deprecated by OnClick event)
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
===Property description===
===Property description===


Name of the function that is called when the button is clicked. The function is expected to be in [[ISDBUIButton::UseScript]] file. There is one parameter passed to the function - this button ([[SDBUIButton]] object).
Name of the function that is called when the button is clicked. The function is expected to be in [[ISDBUIButton::UseScript|UseScript]] file. There is one parameter passed to the function - this button ([[SDBMenuItem]] object).
 
'''Deprecated''': Use the [[ISDBUIButtonEvents::OnClick|OnClick]] event registration instead.


===Example code===                     
===Example code===                     
Line 9: Line 11:
'The function to be called can look like:
'The function to be called can look like:


Sub OnbuttonClick( Btn)
Sub OnButtonClick(Button)
   ' Some code here
   ' Some code here
End Sub
End Sub

Latest revision as of 15:53, 23 April 2013

CoClass SDBUIButton, Interface ISDBUIButton

Property Get/Let OnClickFunc As String


Property description

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

Deprecated: Use the OnClick event registration instead.

Example code

'The function to be called can look like:

Sub OnButtonClick(Button)
  ' Some code here
End Sub