Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using treeview in mscomctl.ocx
Message
From
26/01/2018 14:43:10
 
 
To
26/01/2018 14:21:54
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012 R2
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Miscellaneous
Thread ID:
01657506
Message ID:
01657575
Views:
49
Before I get into finding, downloading, testing etc - how close does this class look to a "good" treeview?

Doug Hennig's articles are good but not all code is there so hard to reproduce (he uses "dummy" entries so that all the nodes do not have to be loaded upon instantiation when there is a lot of data - and then he removes the dummy and replaces it with the real data when the user clicks a node).

Albert

>>Hi,
>>
>>Has anyone written an article on using the treeview control in MSCOMCTL.ocx - instead of me starting from scratch...
>
>Actually, if you don't have an existing implementation, then just don't. The treeview is 20 years old, it has several not-so-nice features (for instance, clicking on the line but not on text will not trigger a .nodeClick() event). There's a decent implementation of a treeview as a grid here in downloads. If it weren't for the dozen places where the code is already wrapped around the treeview in the app (and spaghettied into it tightly), I would have replaced it with this class.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform