View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006746 | MMW v4 | Framework: Scripts/Extensions | public | 2010-11-25 00:46 | 2013-12-20 10:28 |
Reporter | zvezdan | Assigned To | |||
Priority | high | Severity | feature | Reproducibility | N/A |
Status | feedback | Resolution | reopened | ||
Fixed in Version | 3.1 | ||||
Summary | 0006746: ISDBApplication::CursorType property needed | ||||
Description | Currently, the CursorType property could be set only for ISDBUICommon object of some UI control, but not globally for whole application. This is particularly needed for setting of the hourglass cursor when some time-consuming script is executed. | ||||
Tags | No tags attached. | ||||
Fixed in build | 1210 | ||||
|
Seems to be already implemented: http://www.mediamonkey.com/wiki/index.php/ISDBApplication::CursorType and works fine, tested with the following script: Option Explicit Sub OnStartup() Dim oMenuItem Set oMenuItem = SDB.UI.AddMenuItem(SDB.UI.Menu_Edit, 0, 0) oMenuItem.Caption = "Set cursor" oMenuItem.UseScript = Script.ScriptPath oMenuItem.OnClickFunc = "SetCursor" End Sub Sub SetCursor(oItem) SDB.CursorType = -11 End Sub |
|
Sorry, I forgot that it has that implemented, but I recall that it is not working as it should. Here is one test script: Option Explicit Dim lblInfo Sub OnStartup() Dim oMenuItem Set oMenuItem = SDB.UI.AddMenuItem(SDB.UI.Menu_Edit, 0, 0) oMenuItem.Caption = SDB.Localize("Test Hourglass Cursor") oMenuItem.UseScript = Script.ScriptPath oMenuItem.OnClickFunc = "Test" Set oMenuItem = SDB.UI.AddMenuItem(SDB.UI.Menu_Edit, 0, 0) oMenuItem.Caption = SDB.Localize("Hourglass Cursor On") oMenuItem.UseScript = Script.ScriptPath oMenuItem.OnClickFunc = "HourglassOn" Set oMenuItem = SDB.UI.AddMenuItem(SDB.UI.Menu_Edit, 0, 0) oMenuItem.Caption = SDB.Localize("Hourglass Cursor Off") oMenuItem.UseScript = Script.ScriptPath oMenuItem.OnClickFunc = "HourglassOff" End Sub Sub Test(oItem) Dim oForm Dim btnAppCursor Dim btnLblCursor Dim btnCancel Dim iModalResult Set oForm = SDB.UI.NewForm oForm.Common.SetRect 100, 100, 300, 130 oForm.Caption = SDB.Localize("Test") Set lblInfo = SDB.UI.NewLabel(oForm) lblInfo.Caption = "SDB.CursorType: " & SDB.CursorType lblInfo.Common.SetRect 10, 10, 300, 17 Set btnAppCursor = SDB.UI.NewButton(oForm) btnAppCursor.Common.SetRect 10, 30, 80, 25 btnAppCursor.Caption = "App cursor" Script.RegisterEvent btnAppCursor, "OnClick", "btnAppCursor_OnClick" Set btnLblCursor = SDB.UI.NewButton(oForm) btnLblCursor.Common.SetRect 100, 30, 80, 25 btnLblCursor.Caption = "Label cursor" Script.RegisterEvent btnLblCursor, "OnClick", "btnLblCursor_OnClick" Set btnCancel = SDB.UI.NewButton(oForm) btnCancel.Caption = SDB.Localize("&Close") btnCancel.Common.SetRect 200, 60, 70, 25 btnCancel.Cancel = True btnCancel.ModalResult = 2 iModalResult = oForm.ShowModal End Sub Sub btnAppCursor_OnClick() SDB.CursorType = -11 End Sub Sub btnLblCursor_OnClick() lblInfo.Common.CursorType = -11 End Sub Sub HourglassOn(oItem) SDB.CursorType = -11 End Sub Sub HourglassOff(oItem) SDB.CursorType = 0 End Sub 1. If you chose "Edit / Test Hourglass Cursor" you would get one new modal dialog box, after that when you click on "App cursor" button you would change cursor to hourglass, but it stays like that only when mouse cursor is over the client area of that dialog box. I think it should stay as hourglass every time when cursor is over some MM window. 2. If you chose "Edit / Hourglass Cursor On" you would get the hourglass cursor over some parts of the main windows, e.g. over the main tracklist, tree panel, NP, but not over the header of the main tracklist, the header of NP panel, app title bar or MM player. Even more, when you move cursor over MM player, the hourglass would switch to default arrow and will not turn back to hourglass even if you move the cursor back to the main tracklist. However, if you choose the mentioned option and move cursor over the header of tracklist, the cursor will change from the hourglass to the default arrow only when the cursor is over that header, but when you move cursor back to the tracklist it will return back to the hourglass. |
|
This is not resolved as you could see from the test script. |