addtreeviewnode - icon parameter
BlitzPlus Forums/BlitzPlus Programming/addtreeviewnode - icon parameter
| ||
I've noticed that the 'addtreeviewnode' command has an optional icon parameter. I assume that this adds a relevent icon before the text of the node. I'm just not sure how I go about this. There's nothing in the docs referring to this....anyone got any ideas...Thanks. |
| ||
window = CreateWindow ("XXX",20,20,648,480,0,01) icon = LoadIconStrip ("iconfile.bmp") ;This file have to include the icons, the hieght of the file is constant. ; B+ automaticly gets the wide of an ico using the file-height. First pixel is tranperency color. treeview = CreateTreeView (10,10,200,200,window) SetGadgetIconStrip treeview,icon iconnumber = 0 ;first icon is 0 AddTreeViewNode ("Test",TreeViewRoot(treeview),iconnumber) WaitKey() I hope its understandable |