|
|
|
|
- Interrupting TreeListItem
Parameters of the procedure used by TreeListItem Procedure ("Callback") called by TreeListItem for each "child" element found. This procedure can be a local, global or internal procedure.
Res is int
Res = TreeListItem(ARBRE_RecetteTV, "Recette" + TAB + "Dessert", ArbreListeFils_DérouleTout)
INTERNAL PROCEDURE ArbreListeFils_DérouleTout(ARBRE_RecetteTV, CheminFils, FilsTrouvé, Niveau, Pointeur)
IF TreeTypeItem(ARBRE_RecetteTV, CheminFils + FilsTrouvé) = tvLeaf THEN
RETURN
ELSE
IF TreeStatus(ARBRE_RecetteTV, CheminFils + FilsTrouvé) = tvCollapse THEN
TreeExpand(ARBRE_RecetteTV, CheminFils + FilsTrouvé)
END
END
TreeCollapse(ARBRE_RecetteTV, "Recette")
END
Syntax
TreeListItem_Callback(<TreeView control> , <Child path> , <Element> , <Level> , <Optional parameter>)
<TreeView control>: Character string Name of the TreeView control to be used. <Child path>: Character string Full path of the "child" found (without the name) or an empty string ("") if it is the root of TreeView control. This parameter always ends with the "TAB" separator. This parameter will be initialized and filled whenever the procedure is called. Remark: if the <Duplicate identifier> parameter of TreeListItem is set to True, the names of elements will contain the associated identifier if it exists. For more details, see Management of duplicates in trees. <Element>: Character string Name of the element found. This parameter will be initialized and filled whenever the procedure is called. <Level>: entier Level of element found in relation to the initial search element: 1. Direct child 2. Grand child 3. ... <Optional parameter>: entier Value passed in <Custom parameter> of TreeListItem. If <Custom parameter> is not specified, <Optional parameter> corresponds to the NULL constant. Remarks Interrupting TreeListItem TreeListItem cannot be interrupted as long as there are"child" elements to browse through. To force the interruption of the browse performed by TreeListItem, use the following line in the procedure: In this case, TreeListItem returns the number of elements browsed until "RESULT False" was called. Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|