ISDBApplication::RegisterIcon

From MediaMonkey Wiki
Revision as of 19:31, 20 March 2007 by Jiri (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ISDBApplication::RegisterIcon

Function RegisterIcon(Filename As String, IconType As Long) As Long

Parameters

Name Type Description
Filename String The .ico file from which the icon is loaded. The path can be relative to MediaMonkey main folder.
IconType Long Either 0(Menu icon) or 1(Tree icon).


Method description

Adds an icon that can be later used either in menu (SDBMenuItem.IconIndex) or in tree (SDBTreeNode.IconIndex).

Example code

Set Node = Tree.CreateNode
Node.Caption = "My Node"
Node.IconIndex = SDB.RegisterIcon( "Scripts\Icons\new_node_icon", 1)