Navigation:  Tips and Tricks > Forms and Controls > Controls >

Trees

Previous pageReturn to chapter overviewNext page

This is a series that will take you from a simple tree to building a solid application using the Tree control as a controller. Trees are a fairly complex control to use, because you need to think about what the tree is actually doing and now the nodes are connected. Still, it is a lot easier in uniPaaS than in C++!

Title

What it is about

1. Trees

The basics of using a Tree control. How to set up the Data Source and connect it to the Control.

2. Functions

How to create a TimeStamp() function that will be used later, and use it for the Node and Parent ID.

3. Root

Initializing the Root. Shows how to have the Tree task create the root node if it doesn't exist yet. Uses Link Write and Task Prefix.

4. Buttons

Creating the icon buttons used to control the Tree. Uses Models, Webdings, Global Events.

5. Add Child

Create subtask to add a child node. Uses Internal events to refresh the task and move the cursor.

6. Add Sibling

Here we learn how to clone our AddChild event handler to create a sibling node.

7. Up and Down

In this video you will learn how to make nodes in the tree move up or down in the tree when the user clicks a button.

8. Left and Right

In this video you will learn how to make the node move to the left or right. This involves detaching the node from the current parent and attaching it to a different one.

 


Page url: http://www.magic-iug.com/MIUGWeb3/index.html?hm_trees.htm