Aztec® Programming Language
Version 1.1 Alpha 2

Copyright © 2010-2017, Aztec Development Group, All Rights Reserved

Download Aztec

Search        Contact Us

This new rhythym I pursue...

Is just my getting over you.

- Train

 

aztec.ui.TreeMaster

public class TreeMaster from<Control>

Base

Window

Control

TreeMaster

The TreeMaster class provides a hierarchical tree control that can contain any number of TreeItem objects. Levels of the TreeMaster object can easily be opened and collapsed dynamically by the user.

 

The following diagram provides a complete list of valid child windows for the TreeMaster class (TreeItem is the only type of window that can use a TreeMaster object as a parent).

 

Valid Child Windows of TreeMaster

 

TreeMaster Methods

TreeMaster() Constructor for the TreeMaster class
NumSelectedItems() Returns the number of selected items in the TreeMaster control
GetSelectedItems() Returns an array of TreeItem objects representing the selected items in the TreeMaster control

Derived Classes

See Also

 


TreeMaster()

public method TreeMaster(Window Parent, int XPos, int YPos, int Width, int Height, bool MultiRowSelect = true, bool UseButtons = true, bool UseLines = false, bool FullRowSelect = false)

Parameters

Parent

Parent window for the TreeMaster control

XPos

One based X position of control relative to parent

YPos

One based Y position of control relative to parent

Width

Initial width of the control in pixels

Height

Initial height of the control in pixels

MultiRowSelect

Multiple rows can be selected simultaneously if true

UseButtons

'+' and '-' buttons are provided on parent items if true

UseLines

Vertical lines are provided to connect child items if true

FullRowSelect

Entire row containing each item is highlighted if true - just the name is highlighted if false

Return Value

None

Description

Constructor for the TreeMaster class. It creates a Tree control with the specified parent and size as specified. If the width and height are specified as zero, the Tree control will assume the entire size of its parent. This is useful when the parent is a SplitterPane window. If MultiRowSelect is true, the 'ctrl' and 'shift' buttons, together with the left mouse button, can be used to selected multiple tree items.

 

A TreeItem object is the only valid child of a TreeMaster control.

 

TreeMaster Class


NumSelectedItems()

public method<int> NumSelectedItems()

Parameters

None

Return Value

Number of selections

Description

This public method returns the number of TreeItem objects which are currently selected within the TreeMaster control.

 

TreeMaster Class


GetSelectedItems()

public method<TreeItem[]> GetSelectedItems()

Parameters

None

Return Value

Array of currently selected items (can be null)

Description

This public method returns an array of TreeItem objects which are currently selected within the TreeMaster control. If there are no items selected, this method will return null.

 

TreeMaster Class

 

Copyright © 2010-2017

Aztec Development Group

All Rights Reserved

Download Aztec