Is it possible to add Data on a TreeView using Layout files. If it is can you help me with an example please?
Solved TreeView Add Data
Hi Ogers, unfortunately, it's not possible to fill data of a TreeView using Layout File.
A Layout File does not have purpose to define value, but only information about how your object will be represented. So you can only state there is a CUSTOMGUI_TREEVIEW.
Then if you are in:
- NodeData, override GetDDescription method. See GetDDescription() Manual.
- GeDialog, override CreateLayout method. See GeDialog Resources Manual
If you have any questions, please let me know.
But how can I add my own parameters on a TreeView.
I have created a CUSTOMGUI_TREEVIEW and have attached TreeViewFunctions and I know that we should modify functions overridden from the TreeViewFunctions but I do not know how to put my own parameters on the TreeView.
I have seen the example on the sdk too, with the activeobject but it seems a bit complicated.
Can you help me with this one please?
With that's said regarding your issue.
What do you mean by your own parameter?
I suggest you to read this topic, where I did a quick presentation about what to override, why and how.
If you have any question left please do not hesitate to come back with some code! :)