View Issue Details

IDProjectCategoryView StatusLast Update
0007101MMW v4Framework: Scripts/Extensionspublic2011-01-20 21:45
Reporterzvezdan Assigned To 
PriorityhighSeverityminorReproducibilityalways
Status resolvedResolutionunable to reproduce 
Summary0007101: SDB.MainTracksWindow.Focused = xx is not working always correctly in Album Art with Details
DescriptionThis is old bug, but tested with 1342 build as well. Scripting API SDB.MainTracksWindow.Focused = xx is not working always correctly. Here is the test script which should select and give focus to the first (topmost) track in the tracklist, not matter which track is currently selected/focused:

Option Explicit

Sub OnStartup()
    Dim oMenuItem

    Set oMenuItem = SDB.UI.AddMenuItem(SDB.UI.Menu_Edit, 0, 0)
    oMenuItem.Caption = "Select first item"
    oMenuItem.UseScript = Script.ScriptPath
    oMenuItem.OnClickFunc = "SelectFirstItem"
End Sub

Sub SelectFirstItem(oItem)
    SDB.MainTracksWindow.Selected(0) = True
    SDB.MainTracksWindow.Focused = 0
End Sub

Not works correctly: Music, Artist & Album Artist, Album, Genre.

Seems that works correctly: Location, Year.
TagsNo tags attached.
Fixed in build1345

Relationships

parent of 0005970 closedpetr "Focus tracklist on currently playing item" does not work in AA + details view 

Activities

Ludek

2011-01-20 15:34

developer   ~0022493

Tested with 1344 and I haven't been able to reproduce the problem.
I modified the Sub to:

Sub SelectFirstItem(oItem)
    SDB.MessageBox "Old Focused = " & SDB.MainTracksWindow.Focused, mtInformation, Array(mbYes)
    SDB.MainTracksWindow.Selected(0) = True
    SDB.MainTracksWindow.Focused = 0
    SDB.MessageBox "New Focused = " & SDB.MainTracksWindow.Focused, mtInformation, Array(mbYes)
End Sub

and New Focused is always = 0 despite the fact which view I selected.
Tested all (Details, Art, Art with Details) views and various kind of nodes (playlists, Music -> Artist -> Aerosmith, Music -> Album -> 10000 Hz legend, etc.)

zvezdan

2011-01-20 18:46

updater   ~0022500

Please take a look at the screenshot. You would see that SDB.MainTracksWindow.Focused is indeed = 0, but clearly this is not the topmost track in the tracklist, since the thumb of the vertical scrollbar of the tracklist is almost on the bottom. It seems to me that the first track from the Unknown album is selected, not matter on the current sorting order (in my case the tracklist is sorted by Path).

http://img521.imageshack.us/img521/6781/mmselected.png

petr

2011-01-20 21:45

developer   ~0022506

Fixed in 1345