Register to post in forums, or Log in to your existing account
 

 Related 
Contents
Common Properties:
  Name *
  Left *
  Top *
  Width *
  Height *
  Align *
  AutoLeft *
  AutoTop *
  DeltaLeft *
  DeltaTop *
  DeltaRight *
  DeltaBottom *
  AutoCenter *
  FullWidth *
  Anchors
  Color
  Enabled
  TabOrder
  Visible
Visual Object Reference
  Common Properties
  Common Events
  ActiveX
  Button
  Checkbox
  CheckGroup
  ColorBtn
  Column
  Combo
  Dock
  Edit
  Grid
  Group
  Image
  Item
  ItemSep
  Label
  List
  Memo
  Menu
  Navigator
  Node
  Page
  Pages
  Panel
  RadioGroup
  Ruler
  SpinEdit
  Splash
  Splitter
  StatusBar
  Style
  Tab
  Tabs
  Toolbar
  Tree
    AddChild
    Add
    Clear
    FirstNode
    LastNode
    CaptionProp
    CountProp
    ChildProp
    DefaultImage
    CurrentNode
    TopNode
    BottomNode
    AddColumn
    Columns
    LastAdded
    Expand
    Refresh
    Find
    FindText
    Selections
    Select
    SelectRange
    SelectMultiple
    Unselect
    MultiSelect
    SelectAll
    Tree.DB subclass
    OnSelect
    OnGetCellText
    Style
    HotTrack
  Window
Related Links:
  DataSource
  Column
  Tree
  LoadFile
  Node
  Tree
  Style
Tree [[zTree]] 
NOTE: This Design document is subject to change at any time.

Syntax: <TREE property-list>Nodes</TREE>

Displays a hierarchical view of data. This tree view can contain any amount of text and is optimized for virtual display of an infinite list of items of any depth. The Tree can also be used to display hierarchical data stored in a database. This component does not rely on the Microsoft common control library. It is a custom control with greater performance and greater flexibility than the standard Windows tree control.

A Tree is filled with "Nodes". The zNode component is used to represent each item in the tree. A tree can be prepopulated using NODE tags within the TREE tag.

The tree shown above can be created with the ZML code:
Code:
<TREE>
  <NODE Caption="Root Item">
    <NODE Caption="Item 1">
      <NODE Caption="Item 1.1"/>
      <NODE Caption="Item 1.1"/>
      <NODE Caption="Item 1.1"/>
    </NODE>
    <NODE Caption="Item 2">
      <NODE Caption="Item 2.1"/>
      <NODE Caption="Item 2.1"/>
    </NODE>
  </NODE>
</TREE>

or can be created manually with the script:
Code:
<SCRIPT>
  Set Root = tree.Add( "Root Item")
  Set Item = Root.AddChild( "Item 1")
  Set Subitem = Item.AddChild( "Item 1.1")
  Set Subitem = Item.AddChild( "Item 1.2")
  Set Subitem = Item.AddChild( "Item 1.3")
  Set Item = Root.AddChild( "Item 2")
  Set Subitem = Item.AddChild( "Item 2.1")
  Set Subitem = Item.AddChild( "Item 2.2")
</SCRIPT>
Viewer Comments [0 - Post your comments]

Jump to:  

© 2009 Zugg Software. Hosted by Wolfpaw.net