View Issue Details

IDProjectCategoryView StatusLast Update
0007175MMW v4Framework: Scripts/Extensionspublic2011-02-16 22:42
Reporterzvezdan Assigned To 
PriorityimmediateSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version4.0 
Target Version4.0Fixed in Version4.0 
Summary0007175: Property SDB.MainTree.Node_XXX.Expanded = True/False doesn't work (regression)
DescriptionNone of Node_XXX.Expanded properties work anymore (tested Node_Library, Node_Album & Node_Genre). If you ask me, this is very serious problem. Several of my scripts not works anymore because they are using that functionality.

However, SDB.MainTree.CurrentNode.Expanded = True/False works fine.

By the way, MsgBox(SDB.MainTree.Node_Library.Caption) returns "Entire Library" instead of "Music".

Tested 1333 & 1343 builds.
Steps To ReproduceOption Explicit

Sub OnStartup()
    Dim oMenuItem

    Set oMenuItem = SDB.UI.AddMenuItem(SDB.UI.Menu_Edit, 0, 0)
    oMenuItem.Caption = "Expand Library (Music) Node"
    oMenuItem.UseScript = Script.ScriptPath
    oMenuItem.OnClickFunc = "LibraryExpand"

    Set oMenuItem = SDB.UI.AddMenuItem(SDB.UI.Menu_Edit, 0, 0)
    oMenuItem.Caption = "Collapse Library (Music) Node"
    oMenuItem.UseScript = Script.ScriptPath
    oMenuItem.OnClickFunc = "LibraryCollapse"

    Set oMenuItem = SDB.UI.AddMenuItem(SDB.UI.Menu_Edit, 0, 0)
    oMenuItem.Caption = "Expand Current Node"
    oMenuItem.UseScript = Script.ScriptPath
    oMenuItem.OnClickFunc = "CurrentExpand"

    Set oMenuItem = SDB.UI.AddMenuItem(SDB.UI.Menu_Edit, 0, 0)
    oMenuItem.Caption = "Collapse Current Node"
    oMenuItem.UseScript = Script.ScriptPath
    oMenuItem.OnClickFunc = "CurrentCollapse"
End Sub

Sub LibraryExpand(oItem)
    SDB.MainTree.Node_Library.Expanded = True
End Sub

Sub LibraryCollapse(oItem)
    SDB.MainTree.Node_Library.Expanded = False
End Sub

Sub CurrentExpand(oItem)
    SDB.MainTree.CurrentNode.Expanded = True
End Sub

Sub CurrentCollapse(oItem)
    SDB.MainTree.CurrentNode.Expanded = False
End Sub
TagsNo tags attached.
Fixed in build1344

Activities

petr

2011-01-17 17:52

developer   ~0022383

Fixed in 1344. Old Node_XXX returns node from the first visible collection. Also added new Node_XXX_InCollection functions.

peke

2011-02-16 22:42

developer   ~0023187

Verified 1349