Here is my code:
Code: Select all
Sub OnStartup
Set Play = SDB.UI.Menu_File
'Play.OnClickFunc = "BtnClick"
Script.RegisterEvent Play, "OnClick", "BtnClick"
End Sub
Sub BtnClick(Play)
MsgBox ("Wow, button clicked!")
End Sub
Moderators: Gurus, Addon Administrators
Code: Select all
Sub OnStartup
Set Play = SDB.UI.Menu_File
'Play.OnClickFunc = "BtnClick"
Script.RegisterEvent Play, "OnClick", "BtnClick"
End Sub
Sub BtnClick(Play)
MsgBox ("Wow, button clicked!")
End Sub