treectrl.check Property


value = treectrl.check(item, parent);
treectrl.check(item, parent) = value;

Gets/sets the checkbox associated with the specified item, if the tree control has checkboxes.

Parameters

item
Required. Either an integer specifying the item handle (in which case the parent is ignored) or a string specifying the item text. The string may contain a regular expression.
parent
Optional. Integer specifying the parent under which to search for the item. Default value is 0, meaning that items specified by text are searched in the whole tree control.

Example

// Test get/set check
    treectrl.check("New item") = true;
    if (!treectrl.check("New item"))
        Env.LogError("Could not check tree item");
		

See also

treectrl Overview

 


© 2003 Lightweight Technologies. All rights reserved.