User Tools

Site Tools


Sidebar

<< Back


koda:en:documentation:proped_treeview_editor

TreeView Editor

This dialog is accessed by double-clicking to the right of Items in Object Inspector when a TreeView control is selected.

#remarks_header[Parts of the Editor]#

The treeview is displayed in the control near the left side of the editor.

The New Node button creates a node at the same level as the selected node.

The New Subnode button creates a node one level lower than the selected node.

The Delete Button deletes the selected node (and all nodes below it).

The Text input box displays the name of the selected node, so it can be edited.

Image index is the number of the icon in the ImageList that is displayed when the node is not selected. <color blue>-1</color> means no icon.

Selected index is the number of the icon in the ImageList that is displayed when the node is selected. <color blue>-1</color> means no icon.

Apply ???
#remarks_header[Operations]#

Displaying icons for nodes is optional. To display icons requires that an ImageList be attached to the Treeview. In the Design Area:

  1. Create the ImageList using the ImageList Editor
  2. A printed screen shot of the ImageList editor will be useful in assigning icons to nodes.
  3. Select this TreeView control
  4. In Object Inspector, choose an ImageList from the drop-down control to the right of Images
  5. Click to the right of Items to launch this editor.

To add a node at the current level:

  1. If the tree already contains one or more nodes, select the node below which you wish to add a node
  2. Click on New Item
  3. Enter its caption in the Text input box
  4. If icons are to be displayed beside this node, enter their numbers: for the icon when the node is not selected in Image index, and for the icon when it is selected.
  5. To start adding another node at this level, press Enter.

To add a node at the next lower level:

  1. Select the mode that will be the parent of the new node
  2. Click on New Subnode
  3. Enter its caption in the Text input box
  4. If icons are to be displayed beside this node, enter their numbers: for the icon when the node is not selected in Image index, and for the icon when it is selected.
  5. To start adding another node at this level, press Enter.

To edit the name of a node:

  1. Select it
  2. Edit its name in the Text input box

To delete a node and all nodes below it:

  1. Select it
  2. Click on Delete
koda/en/documentation/proped_treeview_editor.txt · Last modified: 2014/07/10 10:48 (external edit)