- Train
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
None
See Also
Class Hierarchy, Frame, ChildFrame, Dialog, TreeItem
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
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
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