Hello,
I am currently in the process of trying to replace a TTreeview with the TTMSFMXTreeView in an application.
The existing and immutable database structure presents me with a certain limitations, for which im looking for a solution.
Basically I've got a database entry containing information A, B, C, D, E, from which I have to create a node with Text E, which is a subnode of a node with the Text D, which is a subnode of a node with Text C, and so on, without creating duplicates.
So for every database entry I have to check whether the respective parent nodes exist, if not create them, and if they do assign my node to the right parent.
To accomplish this I have looked at the TTMSFMXTreeView-methods "FindNodeByTextAndColumn" and "FindNodeByDBKey".
The issues are that the method "FindNodeByTextAndColumn" throws a segmentation fault immediately, even though the Treeview is still empty.
Because of this I tried to abuse the DBKey-Property when creating nodes and tried to work with the "FindNodeByDBKey", however the DBKey-Property seems to get resetted at some point which leads to the method finding nothing.
I would be very thankful if you could provide me with some advice of how to handle this matter and how I might be using those methods in a wrong way.