Icons

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Icons

Re:

by MM3 monkey » Tue Feb 03, 2009 12:08 am

Bex wrote:I combined these two into this script which displays "Node Icons with Description". Might be usefull to others than me!

Code: Select all

Option Explicit

'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'               Startup Function
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Dim SDB
Set SDB = CreateObject( "SongsDB.SDBApplication")

Dim Tree
Set Tree = SDB.MainTree
Dim CustomNodeRoot
Set CustomNodeRoot = Tree.CreateNode
Dim NewNode
Dim a
Dim b(60)
b(0) = "Artist (dude)"
b(1) = "My Computer: CD Drive"
b(2) = "Year (calendar)"
b(3) = "Title (note)"
b(4) = "Playlist (big note)"
b(5) = "My Computer: Hard Drive"
b(6) = "Location-Diskette: (diskette)"
b(7) = "Genre (notes)"
b(8) = "Play Button"
b(9) = "My Computer: Root (big monitor)"
b(10) = "Big Folder"
b(11) = "Big Folder"
b(12) = "Dead Links (big note + broken chain)"
b(13) = "Location: Folder (folder)"
b(14) = "??? (notes on staff)"
b(15) = "Files to Edit (broken note)"
b(16) = "Album (disc)"
b(17) = "Virtual CD (big silver disc)"
b(18) = "Previews (note and clock)"
b(19) = "Library (multiple boxes)"
b(20) = "Location: Folder (folder)"
b(21) = "Ascending Sort (little gray triangle)"
b(22) = "Descending Sort (little gray triangle)"
b(23) = "Virtual CD Queue (big disc + paper)"
b(24) = "Search (magnifying glass)"
b(25) = "My Computer: CD Drive"
b(26) = "My Computer: Diskette Drive"
b(27) = "My Computer: Network Drive"
b(28) = "Classification (colored squares)"
b(29) = "Tempo (drums)"
b(30) = "Mood (smileys)"
b(31) = "Occasion (balloon/heart)"
b(32) = "Quality (blue star)"
b(33) = "Rating (yellow star)"
b(34) = "My Computer: Network Neighborhood"
b(35) = "My Computer: Networks(?) (multiple monitors)"
b(36) = "AutoPlaylist (playlist + magnifying glass)"
b(37) = "? (globe)"
b(38) = "Convert Tracks (note to note)"
b(39) = "Unsynchronized Tags (tag + arrows)"
b(40) = "Now Playing (note + speaker)"
b(41) = "Location Root (monitor)"
b(42) = "? (big gold disc)"
b(43) = "Location: Hard Drive (hard drive)"
b(44) = "Virtual CD (big silver disc)"
b(45) = "Location: Network (multiple monitors)"
b(46) = "Duplicate Titles (note = note)"
b(47) = "? (CD w/ note on it)"
b(48) = "Multiple Artists (two dudes)"
b(49) = "? (folder + magnifying glass)"
b(50) = "My Computer: Network Folder"
b(51) = "My Computer: ? (globe + ?)"
b(52) = "Copy to Folder (two files, folder and a green arrow)"
b(53) = "Move to Folder (file, folder, green arrow)"
b(54) = "Synchronize (blue audio device)"
b(55) = "Unknown Album Art (gray CD box)"
b(56) = "Net Radio"
b(57) = "My Documents (In My Computer node)"
b(58) = "and higher -> nothing (blank)"


CustomNodeRoot.Caption = "Node Icons with Description"
CustomNodeRoot.IconIndex = 28

'Adding the Node to the Tree
Tree.AddNode Tree.Node_Web, CustomNodeRoot, 1

CustomNodeRoot.HasChildren = False   ' To delete all old children

for a=0 to 60
   Set NewNode = Tree.CreateNode
   NewNode.Caption = a &" - "& b(a) 'Caption
   NewNode.IconIndex = a
   NewNode.hasChildren = False

   Tree.AddNode CustomNodeRoot, NewNode, 3
   Set NewNode = Nothing
next

CustomNodeRoot.hasChildren = True

Set CustomNodeRoot = Nothing
Set Tree = Nothing
Set SDB = Nothing
Very cool. Thanks.

by rovingcowboy » Mon Oct 16, 2006 8:22 am

ha ah aha ha :lol:

hey steegy your getting burnt out some. take it easy.

you use to find all my old posts with no trouble. now your having some trouble with others old posts.

take it easy man don't want to loose your scripting to the mental ward. they don't like scripting in there, basicly because nobody in there can understand it. 8) :P :lol:

by Bex » Sun Oct 15, 2006 6:41 am

No problem Steegy! :D

by Steegy » Sun Oct 15, 2006 5:48 am

OMG. Now I see the first posts very actually old ones, that were even already linked from the scripting resources page. I thought this was a "double" topic, but it's actually the original one... My apologies! (wish I could erase everything I said)
(btw: so the my "addition" to my previous post isn't correct anymore)

by DiddeLeeDoo » Sun Oct 15, 2006 5:43 am

Thanks Bex, nice colorful node, and also nice to see work from Risser and Octopod's active days.

by Bex » Sun Oct 15, 2006 2:13 am

Yes, I know and would like to thank you for making that Scripting Resources post. It has helped me out a lot! :D
But i wanted to see the tree icons within MM together with a description so that's why I made the little script.

/Bex

by Steegy » Sat Oct 14, 2006 6:09 pm

Hmm.. a forum search reveals some similar posts about this.

Also try this: http://www.mediamonkey.com/forum/viewtopic.php?t=7980 to see the icons visually at once...

Addition (In response to Bex, below): Your script is very useful. My comment was only because the previous posts seemed "double ones with posts in the past" to me. Anyway, I very much appreciate everything that is helping scripters, and will link this topic in the Scripting Resources page.

by Bex » Sat Oct 14, 2006 12:23 pm

I combined these two into this script which displays "Node Icons with Description". Might be usefull to others than me!

Code: Select all

Option Explicit

'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'               Startup Function
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Dim SDB
Set SDB = CreateObject( "SongsDB.SDBApplication")

Dim Tree
Set Tree = SDB.MainTree
Dim CustomNodeRoot
Set CustomNodeRoot = Tree.CreateNode
Dim NewNode
Dim a
Dim b(60)
b(0) = "Artist (dude)"
b(1) = "My Computer: CD Drive"
b(2) = "Year (calendar)"
b(3) = "Title (note)"
b(4) = "Playlist (big note)"
b(5) = "My Computer: Hard Drive"
b(6) = "Location-Diskette: (diskette)"
b(7) = "Genre (notes)"
b(8) = "Play Button"
b(9) = "My Computer: Root (big monitor)"
b(10) = "Big Folder"
b(11) = "Big Folder"
b(12) = "Dead Links (big note + broken chain)"
b(13) = "Location: Folder (folder)"
b(14) = "??? (notes on staff)"
b(15) = "Files to Edit (broken note)"
b(16) = "Album (disc)"
b(17) = "Virtual CD (big silver disc)"
b(18) = "Previews (note and clock)"
b(19) = "Library (multiple boxes)"
b(20) = "Location: Folder (folder)"
b(21) = "Ascending Sort (little gray triangle)"
b(22) = "Descending Sort (little gray triangle)"
b(23) = "Virtual CD Queue (big disc + paper)"
b(24) = "Search (magnifying glass)"
b(25) = "My Computer: CD Drive"
b(26) = "My Computer: Diskette Drive"
b(27) = "My Computer: Network Drive"
b(28) = "Classification (colored squares)"
b(29) = "Tempo (drums)"
b(30) = "Mood (smileys)"
b(31) = "Occasion (balloon/heart)"
b(32) = "Quality (blue star)"
b(33) = "Rating (yellow star)"
b(34) = "My Computer: Network Neighborhood"
b(35) = "My Computer: Networks(?) (multiple monitors)"
b(36) = "AutoPlaylist (playlist + magnifying glass)"
b(37) = "? (globe)"
b(38) = "Convert Tracks (note to note)"
b(39) = "Unsynchronized Tags (tag + arrows)"
b(40) = "Now Playing (note + speaker)"
b(41) = "Location Root (monitor)"
b(42) = "? (big gold disc)"
b(43) = "Location: Hard Drive (hard drive)"
b(44) = "Virtual CD (big silver disc)"
b(45) = "Location: Network (multiple monitors)"
b(46) = "Duplicate Titles (note = note)"
b(47) = "? (CD w/ note on it)"
b(48) = "Multiple Artists (two dudes)"
b(49) = "? (folder + magnifying glass)"
b(50) = "My Computer: Network Folder"
b(51) = "My Computer: ? (globe + ?)"
b(52) = "Copy to Folder (two files, folder and a green arrow)"
b(53) = "Move to Folder (file, folder, green arrow)"
b(54) = "Synchronize (blue audio device)"
b(55) = "Unknown Album Art (gray CD box)"
b(56) = "Net Radio"
b(57) = "My Documents (In My Computer node)"
b(58) = "and higher -> nothing (blank)"


CustomNodeRoot.Caption = "Node Icons with Description"
CustomNodeRoot.IconIndex = 28

'Adding the Node to the Tree
Tree.AddNode Tree.Node_Web, CustomNodeRoot, 1

CustomNodeRoot.HasChildren = False   ' To delete all old children

for a=0 to 60
   Set NewNode = Tree.CreateNode
   NewNode.Caption = a &" - "& b(a) 'Caption
   NewNode.IconIndex = a
   NewNode.hasChildren = False

   Tree.AddNode CustomNodeRoot, NewNode, 3
   Set NewNode = Nothing
next

CustomNodeRoot.hasChildren = True

Set CustomNodeRoot = Nothing
Set Tree = Nothing
Set SDB = Nothing

by Octopod » Mon Apr 25, 2005 4:11 pm

Here is the little script i use to show all the available icons at the same time (and you' ll notice the icons list is not the same in for menus and nodes):

Code: Select all

Sub OnStartup
 
  Set Tree = SDB.MainTree
  Set UI = SDB.UI
  
    Dim i

    ' Nodes
    for i = 0 to 56
      Set Node = SDB.MainTree.CreateNode
      Node.Caption = CStr(i)
      Node.IconIndex = i
      SDB.MainTree.AddNode SDB.MainTree.Node_Playlists, Node, 1
    next

    ' Toolbars
    'for i = 0 to 30
    for i = 30 to 60
      Set Mnu = SDB.UI.AddMenuItem(SDB.UI.Menu_TbAdvanced, 0, 0)
      Mnu.Hint = i
      Mnu.IconIndex = i
    next

    ' Menus
    for i = 0 to 75
      Set Mnu = SDB.UI.AddMenuItem(SDB.UI.Menu_Tools, -2, 0)
      Mnu.Caption = CStr(i)
      Mnu.Hint = CStr(i)
      Mnu.IconIndex = i
    next

End Sub

Icons

by Risser » Mon Apr 25, 2005 10:42 am

Here's a list of icons I put together. I was hoping to find the Monkey icon, but once I got past 56, I didn't have time to test every single number. If anyone knows what some of these represent, or any numbers past 56, let me know.
Thanks,
Peter

Code: Select all

 0 = Artist (dude)
 1 = My Computer: CD Drive
 2 = Year (calendar)
 3 = Title (note)
 4 = Playlist (big note)
 5 = My Computer: Hard Drive
 6 = Location-Diskette: (diskette)
 7 = Genre (notes)
 8 = Play Button
 9 = My Computer: Root (big monitor)
10 = Big Folder
11 = Big Folder
12 = Dead Links (big note + broken chain)
13 = Location: Folder (folder)
14 = ??? (notes on staff)
15 = Files to Edit (broken note)
16 = Album (disc)
17 = Virtual CD (big silver disc)
18 = Previews (note and clock)
19 = Library (multiple boxes)
20 = Location: Folder (folder)
21 = Ascending Sort (little gray triangle)
22 = Descending Sort (little gray triangle)
23 = Virtual CD Queue (big disc + paper)
24 = Search (magnifying glass)
25 = My Computer: CD Drive
26 = My Computer: Diskette Drive
27 = My Computer: Network Drive
28 = Classification (colored squares)
29 = Tempo (drums)
30 = Mood (smileys)
31 = Occasion (balloon/heart)
32 = Quality (blue star)
33 = Rating (yellow star)
34 = My Computer: Network Neighborhood
35 = My Computer: Networks(?) (multiple monitors)
36 = AutoPlaylist (playlist + magnifying glass)
37 = ? (globe)
38 = Convert Tracks (note to note)
39 = Unsynchronized Tags (tag + arrows)
40 = Now Playing (note + speaker)
41 = Location Root (monitor)
42 = ? (big gold disc)
43 = Location: Hard Drive (hard drive)
44 = Virtual CD (big silver disc)
45 = Location: Network (multiple monitors)
46 = Duplicate Titles (note = note)
47 = ? (CD w/ note on it)
48 = Multiple Artists (two dudes)
49 = ? (folder + magnifying glass)
50 = My Computer: Network Folder
51 = My Computer: ? (globe + ?)
52 = Copy to Folder (two files, folder and a green arrow)
53 = Move to Folder (file, folder, green arrow)
54 = Synchronize (blue audio device)
55 = Unknown Album Art (gray CD box)
56 = nothing (blank)
57 and beyond ...  nothing

Top