|
|
|
|
|
- Overview
- Initializing a TreeView control
- Populating a TreeView control
- WLanguage properties of TreeView controls
- Using properties on a TreeView control
Manipulating TreeView controls programmatically (prefix syntax)
WINDEV and WEBDEV allow you to programmatically manipulate TreeView controls. To do so, use the variable of the TreeView control in the code. The variable of the TreeView control corresponds to the name of the TreeView control. This help page explains how to programmatically manipulate TreeView controls. Remarks: Initializing a TreeView control Populating a TreeView control To initialize a TreeView control, all you have to do is describe all the treeview elements with <TreeView>.Add.
ARBRE_RecetteTV.Ajoute("Recette" + TAB + "Dessert", "GATEAU-.BMP", "GATEAU-.BMP")
ARBRE_RecetteTV.Ajoute("Recette" + TAB + "Dessert" + TAB + "Glace")
ARBRE_RecetteTV.Ajoute("Recette" + TAB + "Dessert" + TAB + "Glace" + TAB + ...
"Vanille", "SUIVAN5-.BMP")
ARBRE_RecetteTV.Ajoute("Recette" + TAB + "Dessert" + TAB + "Glace" + TAB + ...
"Fraise", "SUIVAN5-.BMP")
ARBRE_RecetteTV.Ajoute("Recette" + TAB + "Dessert" + TAB + "Glace" + TAB + ...
"Chocolat", "SUIVAN5-.BMP")
ARBRE_RecetteTV.Ajoute("Recette" + TAB + "Dessert" + TAB + "Coupe")
ARBRE_RecetteTV.Ajoute("Recette" + TAB + "Dessert" + TAB + "Coupe" + TAB + ...
"Pêche Melba", "SUIVAN5-.BMP")
ARBRE_RecetteTV.Ajoute("Recette" + TAB + "Dessert" + TAB + "Coupe" + TAB + ...
"Poire belle hélène", "SUIVAN5-.BMP")
ARBRE_RecetteTV.Ajoute("Recette" + TAB + "Dessert" + TAB + "Coupe" + TAB + "Colonel", ...
"SUIVAN5-.BMP")
ARBRE_RecetteTV.Ajoute("Recette" + TAB + "Dessert" + TAB + "Tarte aux pommes")
ARBRE_RecetteTV.Ajoute("Recette" + TAB + "Dessert" + TAB + "Tarte aux pommes" + TAB + ...
"à la crème fraîche", "SUIVAN5-.BMP")
ARBRE_RecetteTV.Ajoute("Recette" + TAB + "Dessert" + TAB + "Tarte aux pommes" + TAB + ...
"au calvados", "SUIVAN5-.BMP")
ARBRE_RecetteTV.Ajoute("Recette" + TAB + "Dessert" + TAB + "Crème brûlée", "SUIVAN5-.BMP")
ARBRE_RecetteTV.Ajoute("Recette" + TAB + "Dessert" + TAB + "Vacherin", "SUIVAN5-.BMP")
ARBRE_RecetteTV.Déroule("Recette")
WLanguage properties of TreeView controls Several WLanguage properties can be used on the TreeView control. For a complete list of WLanguage properties that can be used with TreeView controls, see TreeView control properties. Using properties on a TreeView control Example: How to find out the number of elements in a TreeView control: Trace(ARBRE_MonArbre.Occurrence)
Example: How to modify the size of the font for all the elements of a TreeView control: ARBRE_MonArbre.PoliceTaille = 14
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|