I'm testing the CreateTreeView command, and I tryed to add the icons to the elements: if I don't indicate what icon I want to show (or nothing to show, I think is -1) I obtain ALL the elements of the TreeView with an icon displayed. It's a bug or I missed something?
From the documentation examples:
From the documentation examples:
Strict Local window:TGadget=CreateWindow("My Window",50,50,240,240) Local treeview:TGadget=CreateTreeView(0,0,200,200,window) Local strip:ticonStrip=LoadIconStrip("toolbar.bmp") 'ADDED SetGadgetLayout treeview,2,2,2,2 Local root:TGadget=TreeViewRoot(treeview) SetGadgetIconStrip(root,strip) '<--- ADDED Local help:TGadget=AddTreeViewNode("Help",root) AddTreeViewNode "topic 1",help AddTreeViewNode "topic 2",help AddTreeViewNode "topic 3",help Local projects:TGadget=AddTreeViewNode("Projects",root) AddTreeViewNode "project 1",projects AddTreeViewNode("project 2",projects) AddTreeViewNode("project 3 is a big waste of time",projects) While WaitEvent() Print CurrentEvent.ToString() Select EventID() Case EVENT_WINDOWCLOSE End End Select Wend