Peter, you may try
wd 'olemethod tvTree base AddNode "First Node" 0 1'
wd 'oleid curNode'
ymmv
Peter Nichols wrote:
Hi J'ers,
I'm trying to use a treeview control from dbi-tech and I'm not sure how to
add nodes to it. Any help will be greatly appreciated!
Here is what they say about how to call it from their language (not j)
Declare an integer called curNode for the return from the add node function
Call the addnode function with "Test Node", 0, 1
curNode = ctTree.AddNode "TestNode", 0, 1
In J
This line creates it and it seems to work fine. I get a blank control
that I need to add nodes to.
xywh 9 9 118 179;cc tvTree ocx:ctTREE.ctTreeView.7;
I enable a click event
wd 'oleenable tvTree Click'
And then I try to add a node
curNode =: wd 'olemethod tvTree AddNode *First Node',2 ic 0 1
wd 'qer' returns 'bad object number : 0'
Thanks in advance,
Peter Nichols
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
--
regards,
bill
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm