treeview ActiveX

Chris Kelleher

Administrator
Staff member
Morning all,
I have been trying to locate an enhanced treeview ActiveX with at least the
capabilities of:
- drag & drop
- checkmarks (to show completion of a task)
- correctly treating events like double click etc

The standard MS stuff has no check boxes
The Protoview OCX generates Prowin32 errors when leaving the session and the
events do not work.
Sheridan has no checkboxes.
Axtree looks nice but I could get adding nodes to work

Anybody tried anything else successfully?

TIA
Hendrik
 

Chris Kelleher

Administrator
Staff member
AFAIK, the Protoview Treeview is fine but does produce
GPFs if you don't release your objects properly. Are
you 100% sure that you are releasing all your objects
as soon as you have finished with them? There are some
scary gotchas with ActiveX in Progress - here's an
example:

def var ch-add as com-handle.
do a = 1 to 30:
ch-add = <treeview add node method syntax>.
end.
release object ch-add.

In this example I'm creating 30 object references, but
only releasing 1 of them. Golden rule - release
com-handle variables as soon as you've finished with
them. My apologies if you already know this!

HTH
Tarby
 

Chris Kelleher

Administrator
Staff member
Re: protoview, has it not been discussed recently that prowin32 errors are
caused by not releasing all the com-handles correctly?

Regards

Mark

#####################################################
Mark Newnham
Application Design Associates, Inc
6021 S.Syracuse Way #302
Englewood, CO 80111, USA
#####################################################
 

Chris Kelleher

Administrator
Staff member
yes
but I hoped you don't have to release each node individually?
What I did was clear the treeview, and then release the treeview object.
No problem on Win2000, but a double Prowin error on my Win98 machine.

In the meantime I went back to MS Treeview, but the VB6 version.
That seems to work.
But I am checking out some other stuff too.

Thks
Hendrik
 
Top