View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007101 | MMW v4 | Framework: Scripts/Extensions | public | 2010-12-31 00:32 | 2011-01-20 21:45 |
Reporter | zvezdan | Assigned To | |||
Priority | high | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | unable to reproduce | ||
Summary | 0007101: SDB.MainTracksWindow.Focused = xx is not working always correctly in Album Art with Details | ||||
Description | This 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. | ||||
Tags | No tags attached. | ||||
Fixed in build | 1345 | ||||
|
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.) |
|
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 |
|
Fixed in 1345 |