So after a few have suggested that for one of my more complex relationships that a Tree View might be an easier form of navigation, I decided to give it a try.
But wow... this is one of the more daunting controls, and I remember now why I always avoided it in the past. I've read through a lot of the site posts, many of which have links to articles that no longer exist... (pity that wasn't thought ahead and had some of the core bits brought into the post instead of linked outside the site). Of the few I found, they still seemed to be so different in their example, and compared to the example in the SAMPLES section of VFP, I still don't "get it".
In particular, I see in code references to a "node" property, but the ActiveX control I see only "NodeChec" and "NodeClick" methods, and no other properties related to node. So I don't understand how to write these.
One example creates a "procedure" called PopulateTreeView, I'm not sure if that's the same as a "Refresh" clause on the Treeview control, or is it better to add this method?
I suppose in general what I'm looking for out of all this data is, what's the best way to approach this class? Great that they created this very powerful "base class" but it's so sparse in it's otherwise implementation.
I think maybe it's best to describe as well, what I envision is having a "Root" node that is populated from one table, and then the child records for the root nodes added to the table. (There are grand-child and great-grandchild, but I suspect if I can get Parent (root) and child then the rest should be just cascading that.)
Appreciate your help on guiding me through this, I've never used this class before.
Best Regards,
Scott
ATS, CDCE, CTIA, CTDC
"Everything should be made as simple as possible, and no simpler."
But wow... this is one of the more daunting controls, and I remember now why I always avoided it in the past. I've read through a lot of the site posts, many of which have links to articles that no longer exist... (pity that wasn't thought ahead and had some of the core bits brought into the post instead of linked outside the site). Of the few I found, they still seemed to be so different in their example, and compared to the example in the SAMPLES section of VFP, I still don't "get it".
In particular, I see in code references to a "node" property, but the ActiveX control I see only "NodeChec" and "NodeClick" methods, and no other properties related to node. So I don't understand how to write these.
One example creates a "procedure" called PopulateTreeView, I'm not sure if that's the same as a "Refresh" clause on the Treeview control, or is it better to add this method?
I suppose in general what I'm looking for out of all this data is, what's the best way to approach this class? Great that they created this very powerful "base class" but it's so sparse in it's otherwise implementation.
I think maybe it's best to describe as well, what I envision is having a "Root" node that is populated from one table, and then the child records for the root nodes added to the table. (There are grand-child and great-grandchild, but I suspect if I can get Parent (root) and child then the rest should be just cascading that.)
Appreciate your help on guiding me through this, I've never used this class before.
Best Regards,
Scott
ATS, CDCE, CTIA, CTDC
"Everything should be made as simple as possible, and no simpler."