` Printed Icetips Article

Icetips Article



Templates: Setting up tree view in templates
1999-03-29 -- Phillip Carroll
 
Newsgroups: TopSpeed.Topic.Templates

In article <36fa5e01.0@tsnews.clarion.com>, Pierre Tremblay wrote:
> I did write a class for a control template and I would like to see the
> object name under the "Local Object" tree when the embed button is pressed.
> Is someone can give some directions where to look for doing this?
>

Putting an object under the "Local Object" list in the embed tree is very
easy to do. It requires using the new TREE attribute of the #EMBED statement
instead of a MAP atribute. This new TREE attribute is very nice. It is a vast
improvement over the old MAP attribute. Using TREE, it is very easy to
arrange embeds any way you like into a tree structure.

Basically, any string used in this parameter that starts with 'Local Objects'
will cause the embed to appear in the local objects list.

I am using this attribute with UltraTree, when it is installed in C5. For the
attribute parameter, I use a call to a #GROUP, which returns the string that
determines placement of the embed into the embed tree. Because UltraTree is a
master object that controls subsidiary objects, I structure the whole
collection as a tree of objects under the controlling UltraTree object.
Extremely simple to do.

You can generate subheadings and all sorts of neat stuff.

Perhaps this would make a good topic for an article in Clarion Magazine.

Phil Carroll
Paragon Design & Development
UltraTree Professional Edition - the ultimate tree
http://www.paragondandd.com



Printed November 23, 2024, 2:10 am
This article has been viewed/printed 35272 times.
Google search has resulted in 43 hits on this article since January 25, 2004.