Version
Tree View Sample
Compiling
To compile the example:
- Launch EiffelStudio.
- Click Add project
- Browse to $ISE_EIFFEL\examples\wel\tree_view\.
- Choose tree_view.ecf
- Choose the location where the project will be compiled, by default the same directory containing the configuration file.
- Click OK.
Running
After launching the program, a window will be displayed as illustrated above. Selecting or expanding one of the tree items will cause notification to be displayed in the list at the top of the window. Various other notifications are also displayed, such as pressing a key in the tree.
Under the Hood
TREEVIEW
inherits WEL_TREE_VIEW and redefines make to initialize items within the tree. A WEL_TREE_VIEW_INSERT_STRUCT is used to insert each WEL_TREE_VIEW_ITEM while a WEL_IMAGE_LIST is used to reference images within the tree. This sample contains the following classes:
-
TREEVIEW
-
MAIN_WINDOW
-
TREEVIEW_DEMO
-
APPLICATION_IDS
Back to WEL Samples