Author Topic: Panel Plugin Header Items no Longer Working  (Read 3606 times)

zkhcohen

  • Sr. Member
  • ****
  • Posts: 346
Hey Steven,

I'm on MusicBee 3.3.7017 and it looks like the API function for adding header items to panel plugins is no longer working:

Code
// presence of this function indicates to MusicBee that the dockable panel created above will show menu items when the panel header is clicked
        // return the list of ToolStripMenuItems that will be displayed
        public List<ToolStripItem> GetHeaderMenuItems()
        {
            List<ToolStripItem> list = new List<ToolStripItem>();
            list.Add(new ToolStripMenuItem("A menu item"));
            return list;
        }


Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34346
That looks like its a typo. Its always been "GetMenuItems"

zkhcohen

  • Sr. Member
  • ****
  • Posts: 346
That looks like its a typo. Its always been "GetMenuItems"

Yep! Looks like it's working now.

Thank you.

Here's the original post with the typo:

https://getmusicbee.com/forum/index.php?topic=19739.msg118007#msg118007