Archive of UserLand's first discussion group, started October 5, 1998.
Re: Scripting Challenge: Tree Charts in Frontier
Author: John Styles Posted: 8/5/1999; 1:00:42 PM Topic: [Mini-HowTo] Auto-numbering Msg #: 9179 (In response to 9167) Prev/Next: 9178 / 9180
If you are interested in using a client side ActiveX control rather than generating an image on the fly, then check out http://www.quiksoft.com/sitemapper/samples/smsched.aspWhich uses a control. It is not freeware so if you use it other than from their web-site you get various 'this is a demo' messages, which is 'cool' - to each their own business model.
Here is some code which displays a fully open tree with a top node each of which has 2 branches, each of which has 2 braches each of which has 2 branches. It was unashamedly developed by using one of their web pages and hacking it around until it worked.
-- SNIP HERE --
Minimalist Sample
---- END SNIP --
It should be reasonably obvious to the trained eye what's going on here. The first parameter is the 'path' of the node - only the bit after the last slash is displayed. The final parameter is the icon used for the node.
It would presumably be easy to dynamically generate the MyTree.AddNode statements.
I think this is a more elegant solution that generating images. There may be freeware ActiveX controls which do the same thing. Obviously not a cross platform solution though!
John Styles john@gurk.demon.co.uk
This page was archived on 6/13/2001; 4:51:44 PM.
© Copyright 1998-2001 UserLand Software, Inc.