Control - Tree View

images\btn_ctrl_treeview.gif Insert a hierarchical tree display. Designed to display data such as organization trees, entries in an index, files and directories on disk, etc.

 

Note: Non-Common Control properties are prefaced with "tvw", suppressed in the following for greater legibility.

 

Properties

 

In addition to the properties listed below, a Control tab provides access to certain frequently used form properties for this control. See the Form Properties topic for information on those properties.

 

 

TreeView

General

 

Style

The graphics style (images, text, plus/minus boxes and lines) used to show each Node object. Text only; image and text; +/- and text; +/-, image and text; lines and text; lines, image, and text; (Default) lines, +/-, image and text.

MousePointer

The type of mouse pointer displayed when over the tree view. Choose from 16 different types plus a custom pointer

LineStyle

TreeLines - show lines between Node siblings and their parent Node. RootLines - also show lines between root nodes.

LabelEdit

Automatic - BeforeLabelEdit event is generated when the user clicks the label of a selected node. Manual - BeforeLabelEdit event generated only when the StartLabelEdit method is invoked.

ImageList

ImageList control to use with this treeview

BorderStyle

FixedSingle (default) or None. None may be used with Flat Appearance to achieve an uncaptioned rectangle of background color.

Appearance

3D or Flat. 3D is the standard Windows look. Flat results in a rectangular square of background color with a foreground color border.

OLEDragMode

DragManual (default) or DragAutomatic. DragManual means the program handles all OLE drag/drop operations, while DragAutomatic means the tree view handles all OLE drag/drop operations

OLEDropMode

Set to None (default) if the tree view does not accept OLE drops and is to display the No Drop cursor if an OLE drop is attempted. Set to Manual, the tree view will trigger OLE drop events, allowing programs to handle the OLE drop operation in code.

Indentation

Indentation of objects in the tree view.

PathSeparator

Delimiter character used for the path returned by the FullPath property. "\" by default.

HideSelection

True or False. True means that highlighted text will not appear highlighted when the tree view loses the focus. False means that highlighted text stays highlighted even when another form or dialog has the focus.

Sorted

True - Node objects sorted by their Text property. False - Not sorted.

FullRowSelect

Specifies if the entire row is selected.

Enabled

True or False. True means the object can respond to user-generated events, false prevents it from responding.

Checkboxes

False (Default) - Checkboxes do not appear. True - Checkboxes appear.

SingleSel

Whether the item is expanded when selected. False (Default) -The item doesn't expand. True - the item expands.

Scroll

True - scrollbars are displayed. False (Default) - no scrollbars.

HotTracking

Whether or not mouse-sensitive highlighting is enabled. True - Header captions are highlighted as the mouse passes over them. False - HeaderItem objects do not respond to mouse movement unless the mouse button is clicked.

 

 

Font

 

Properties

Font properties that may be changes.

Font

Choose a font installed on this system. It's wise to choose standard Windows fonts such as MS Sans Serif that are universally available.

Size

Size of font, in points.

Effects

Bold, Italic, Underline or Strikeout.

Sample Text

A preview of the selected settings.

 

 

Picture

 

MouseIcon

Custom icon to use when the MousePointer property is set to 99. Like Visual Basic, will not load animated cursor (.ani) files.