Tree Control Functions


Alpha Anywhere provides the following tree control functions.


Transform child/parent pairs into a tree.


Transform an outline string to a tree string.


Transform an tree string to an outline string.

add_branch_leaves Function

Add a leaf for every branch in a tree.

Related Tree Control Functions 

The following tree control methods are also useful. The Tree Control has the following methods. The tree control methods are used with a pointer to the control in the following way: <Control>.METHOD(). Refer to Retrieving a Pointer to a Control for techniques for getting a <Control> pointer.

.ACTIVATE() - Sets focus to the object.

.CHILD() - Returns an object pointer to the Nth child of the object, or the child object called Object_Name.

.CHILD_ENUM() - Returns a CR-LF separated list of all the child objects on the form, in tab order.

.CHILDREN() - Returns the number of objects that a container object contains. Returns zero if the object is not a container.

.CLASS() - Returns the class (i.e., type) of the object.

.CONTAINER_GET() - Returns the name of the control's container.

.DISABLE() - Makes a form unable to receive focus. May also gray the object. Works with fields, buttons, check boxes, etc.

.ENABLE() - Makes an object able to receive focus.

.EVAL() - Interprets a string as Xbasic code.

.FIELD_GET() - Returns a pointer to the table field bound to the control.

.HAS_METHOD() - Returns .T. (TRUE) if the form supports the specified method.

.HIDE() - Hides an object.

.KINDOF() - Returns the kind of object represented by a form.

.NAME() - Returns the object name.

.REFERENCE_EXPRESSION_GET() - Returns the reference expression to reconstruct a reference to the object.

.REFRESH() - Forces a control to re-fetch data from its data source, and then to repaint itself. Works with all controls.

.REPAINT() - Re-displays a control.

.SESSIONHANDLE() - Returns the session handle associated with the object.

.SHOW() - Shows an object that may previously have been hidden using the .HIDE() method. Works with fields, buttons, check boxes, text, lines and most other objects on forms.

.TEXTREPLACE() - Replaces selected text in a text control.

.TEXTSELECT() - Selects text in a text control.

.TYPE() - Returns the type of data bound to an object.

See Also