View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0011674 | MMW v4 | Framework: Scripts/Extensions | public | 2014-01-04 12:02 | 2014-01-05 00:28 |
Reporter | zvezdan | Assigned To | |||
Priority | none | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | 4.1 | ||||
Summary | 0011674: Icons loaded with RegisterIcon disappear after skin change | ||||
Description | I don't know if I should report this problem in Scripts or Skins category, but it is not manifesting with built-in icons. Icons loaded from some external ICO file disappear after changing of skins, even after clicking on some skin in the skin's list without accepting the modification with the OK button in the Options dialog. Actually, the tree icons disappear most of the time, but sometimes are replaced with some built-in icon. However, it seems that the menu/toolbar icons are only replaced with some another built-in icon (I think that I got disappeared icons in menus as well, but I am not sure about that). However, this doesn't happen with every skin. The problem with the tree icons is easily reproduced even with the default skins (Metro, Pulse, Vitreous), but the problem with the menu/toolbar icons I could reproduce only with the G-Monkey skin. After restarting of the program everything is fine, i.e. icons are displayed correctly. Here is the test script: Option Explicit Dim iIconIndex Sub OnStartup() Dim oTreeNode Dim oMenuTree Dim oMenuMain Dim oMenuItem Dim oToolbar Dim oTBarBtn Set oTreeNode = SDB.MainTree.CreateNode oTreeNode.Caption = "Test Node Icon" oTreeNode.IconIndex = SDB.RegisterIcon("c:\Program Files\MediaMonkey\Scripts\Auto\MagicNodes.ico", 1) SDB.MainTree.AddNode SDB.MainTree.Node_Library, oTreeNode, 1 iIconIndex = SDB.RegisterIcon("c:\Program Files\MediaMonkey\Scripts\Auto\MagicNodes.ico", 0) Set oMenuTree = SDB.UI.AddMenuItemSub(SDB.UI.Menu_Pop_Tree, -3, 0) oMenuTree.Caption = "Test Menu Icon" oMenuTree.IconIndex = iIconIndex Set oMenuMain = SDB.UI.AddMenuItemSub(SDB.UI.Menu_Edit, 0, 0) oMenuMain.Caption = "Test Menu Icon" oMenuMain.IconIndex = iIconIndex Set oTBarBtn = SDB.UI.AddMenuItem(SDB.UI.Menu_TbNavigation, 0, 0) oTBarBtn.Caption = "Test Toolbar Icon" oTBarBtn.IconIndex = iIconIndex If SDB.VersionHi >= 4 Then If SDB.VersionBuild >= 1378 Then Set oToolbar = SDB.UI.AddToolbar("Test Icon") Set oTBarBtn = SDB.UI.AddMenuItem(oToolbar, 0, 0) oTBarBtn.Caption = "Test Toolbar Icon" oTBarBtn.IconIndex = iIconIndex End If End If End Sub You should have c:\Program Files\MediaMonkey\Scripts\Auto\MagicNodes.ico file if you have installed Magic Nodes add-on, or you could enter some another ICO file. | ||||
Tags | No tags attached. | ||||
Fixed in build | |||||