Hi Alex,
I had tried to implement your code to my treeview but i could not succeed. I have a few questions. I will be appreciate if you answer me kindly. Before the questions i will inform you about my application;
I use key reaction to control widget behavior.
Treeview widget created in a dialogbox with a window by GuiBuilder.exe
The treeview nodes and leafs create by file which located in sd card.
Example file format in sd card is below;
#node: //root
Node1
Node2
Node3
#end
#leaf:1: // first node's children -leafs
Node10
Node11
Node12
#end
#node:2: // second node's children -nodes
Node21
Node22
#end
#leaf:3: // third node's children -leafs
Leaf31
Leaf32
Leaf33
#end
Display More
So According to the file item count ends with "#end" command. When I call create dialog function the treeview items created according to the file. After Treeview widged created, I want to add new leaf below selected leaf. It is easy to add sibling leaf. The new leaf must give some information about prev leaf(selected). But selected leaf and new leaf looks separate from each other. So I want to add frame images to them which looks like upper(selected item's background) part of frame and lower(new created item's background) part of frame. It will be more clear if you review "customTreeview.png" from attachments. So if user change selection, old selected item should seems normal and created item should deleted before creating new item and changing frame. It can be a bit confusing up here because my English is may not clear.
It is possible to create treeview like attachments?
if it is possible, how do I add a custom draw to the treeview created under dialog?
Can you suggest more effective way to do this?
If you want additional info please submit.
Thanks in advance...
Best Regards
Emin ATEŞ