View Issue Details

IDProjectCategoryView StatusLast Update
0006754MMW v4Framework: Scripts/Extensionspublic2010-11-27 17:58
Reporterzvezdan Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Summary0006754: ISDBMenuItem::ShortCut doesn't work for Tree popup menu
DescriptionIt works for main menu, tracklist popup and Now Playing panel popup, but not for Tree popup
Steps To ReproduceOption Explicit

Sub OnStartup()
    Dim oMenuItem

    Set oMenuItem = SDB.UI.AddMenuItem(SDB.UI.Menu_Edit, 0, 0)
    oMenuItem.Caption = "Test of shortcut"
    oMenuItem.Shortcut = "Ctrl+1"
    oMenuItem.UseScript = Script.ScriptPath
    oMenuItem.OnClickFunc = "Test1"

    Set oMenuItem = SDB.UI.AddMenuItem(SDB.UI.Menu_Pop_TrackList, 0, 0)
    oMenuItem.Caption = "Test of shortcut"
    oMenuItem.Shortcut = "Ctrl+2"
    oMenuItem.UseScript = Script.ScriptPath
    oMenuItem.OnClickFunc = "Test2"

    Set oMenuItem = SDB.UI.AddMenuItem(SDB.UI.Menu_Pop_Tree, 0, 0)
    oMenuItem.Caption = "Test of shortcut"
    oMenuItem.Shortcut = "Ctrl+3"
    oMenuItem.UseScript = Script.ScriptPath
    oMenuItem.OnClickFunc = "Test3"

    Set oMenuItem = SDB.UI.AddMenuItem(SDB.UI.Menu_Pop_NP, 0, 0)
    oMenuItem.Caption = "Test of shortcut"
    oMenuItem.Shortcut = "Ctrl+4"
    oMenuItem.UseScript = Script.ScriptPath
    oMenuItem.OnClickFunc = "Test4"
End Sub

Sub Test1(oItem)
    SDB.MessageBox "Main menu shortcut.", mtInformation, Array(mbOK)
End Sub

Sub Test2(oItem)
    SDB.MessageBox "Tracklist popup menu shortcut.", mtInformation, Array(mbOK)
End Sub

Sub Test3(oItem)
    SDB.MessageBox "Tree popup menu shortcut.", mtInformation, Array(mbOK)
End Sub

Sub Test4(oItem)
    SDB.MessageBox "Now Playing popup menu shortcut.", mtInformation, Array(mbOK)
End Sub
TagsNo tags attached.
Fixed in build

Relationships

related to 0009073 new Option to specify Enabled, Visible and Active for items in the Scripts.ini file for type 0/1 scripts 

Activities

There are no notes attached to this issue.