I am working with Creo 8. I would like to implement a dialog with tree view in it. The tree has 3 columns. I have spent few of hours trying to understand API to create and populate tree. But not able to figure how to do it. With C++ I wasn't even able to add node to tree. With C I could add node but not able to figure how to add column. If anyone has tried this already I would appreciate the help in from of sample code.
FWIW -
For C I have following working code to add node -
Solved! Go to Solution.
If you want add column in tree ui component.Set attribute [.TreeAttributeWindow] for [True]。
edit .res file with notepad,add attribute (.TreeAttributeWindow True) in (TreeAttributeWindow testTree)
If you want add column in tree ui component.Set attribute [.TreeAttributeWindow] for [True]。
edit .res file with notepad,add attribute (.TreeAttributeWindow True) in (TreeAttributeWindow testTree)
Hello, have you figure out your problem?
I am faced with the same question like yours. I can hardly understand the logic of composing the node in UI Tree.
Can you send me some code about UI Tree, this will help me absolutely.
Thank you.
Hello, As suggested in accepted solution I modified my .res file to add following line (.<your_tree_view_name>TreeAttributeWindow True) Replace <your_tree_view_name> with actual tree view name. Then I used ProToolkit API ProUITreeNodeInsert() to insert node in tree. It worked for me.