|
|
|
|
|
<TreeView>.SelectPlus (Function) In french: <Arbre>.SelectPlus Selects an element in a TreeView control. Example of TreeView control:
// Select the "Desserts" node in the "TREE_TVRecipe" TreeView control Res = TREE_TVRecipe.SelectPlus("Recipes" + TAB + "Desserts")
// Initialize the treeView TREE_TreeView1.Add("Root", tvDefault, tvDefault, "") TREE_TreeView1.Add("Root" + TAB + "Leaf 1", tvDefault, tvDefault, "1") TREE_TreeView1.Add("Root" + TAB + "Leaf 2", tvDefault, tvDefault, "2") TREE_TreeView1.Add("Root" + TAB + "Leaf 3", tvDefault, tvDefault, "3") TREE_TreeView1.Add("Root" + TAB + "Leaf 4", tvDefault, tvDefault, "4") TREE_TreeView1.Add("Root" + TAB + "Leaf 2" + TAB + "Sub Leaf 2-1", ... tvDefault, tvDefault, "5") TREE_TreeView1.Add("Root" + TAB + "Leaf 2" + TAB + "Sub Leaf 2-2", ... tvDefault, tvDefault, "6") TREE_TreeView1.Add("Root" + TAB + "Leaf 2" + TAB + "Sub Leaf 2-3", ... tvDefault, tvDefault, "7") TREE_TreeView1.Add("Root" + TAB + "Leaf 2" + TAB + "Sub Leaf 2-4", ... tvDefault, tvDefault, "8") TREE_TreeView1.Add("Root" + TAB + "Leaf 2" + TAB + "Sub Leaf 2-5", ... tvDefault, tvDefault, "9") Â // Initialize the TreeView control TREE_TreeView1.SelectPlus("Root" + TAB + "Leaf 2" + TAB + "Sub Leaf 2-5")
Syntax
<Result> = <TreeView control>.SelectPlus(<Element path>)
<Result>: Boolean - True if the selection was performed,
- False if the specified element does not exist.
<TreeView control>: Control name Name of the TreeView control to be used. <Element path>: Character string Full path of element to use. This parameter has the following format:
"<Root name>" + TAB + ["<Name of 1st node>" + TAB + ... ["<Name of 2nd node>" + TAB + [...]]]"<Leaf name>" If there are two elements with the same name in the path, you can add the IDs of the elements (after their names using TreeID). Remarks Selection bar If the element to select is not visible, the TreeView control is expanded until the element is made visible, then the element is selected. Events run When <TreeView>.SelectPlus is called, the "Displaying a row" and "Selecting a row" events are not executed.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|