Hey Doug--
I am doing what you're talking about, but using a hack of Pascal's original
TreeNode widget (I was [and still am] new to DynAPI when I started this
project, and the original widget seemed easier to get my head around, and
was shorter.... :-)).
The crux of what needs to happen is:
--modify the expand method to look for children (referenced by the "items"
array in Pascal's code).
--If they exist, expand; if not, get the data that you want to add and run
the "addChild()" method for each node that you want to add under the parent.
In my example, this is done by calling a search routine (in the red frame at
the bottom) that returns a search result object, which I use to populate the
node.
You can see an example of what I'm doing at:
http://danthom.dnsart.com/scrolltest/
(it's my home server, give it a few seconds to come up....)
Right now, the code is pretty specific to my project and is still in heavy
development (since I posted this example, I've moved to the
cksscrollboxbutons widget instead of the original scrollbox widget, enhanced
the search object, gotten rid of some event listeners, etc.). I'd be happy
to send it to you (or post it to the mailing list [not sure what the
etiquette is for posting huge chunks of code...., since you can grab the
pieces one at a time from my example site]). Let me know.
Hope this helps. Good Luck!
Dan Thom
-----Original Message-----
From: Doug Melvin [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 2:40 PM
To: [EMAIL PROTECTED]
Subject: [Dynapi-Help] RiFastTreeNode
Richard:
Any ideas on how I go about modifying your RiFastTreeNode to allow adding of
nodeContent _AFTER_ the tree had been added to the document?
It seems that I can only do so before adding the tree to the document.
Doug Melvin
Programmer/Analyst
Creative-Workshop.com
(613) 236-5556
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help