Several sample programs (with source) are available to help you understand and use XTREE controls. The best place to get these and other sample programs is from the A-Shell SOSLIB.
.
Program |
Description |
TABDLG |
Sample Tab control in a dialog, with an XTREE on one of the Tab pages. |
XTRARY |
Simple three-column list, array mode, using the Simple Multi-Column Coldef Syntax. |
XTRA2 |
A more sophisticated array-based example, supporting multi-level and multi-select options, and using the Advanced Coldef syntax to define columns with different formats, colors (row,column,cell), popup menus, etc. Also supports option to display the XTREE inside of a dialog frame. |
XTRA2A |
Variation of XTRA2 illustrating XTR.expandall options with a 4 level hierarchy, also merge-into and merge-out of options, row fonts. |
XTRA3 |
An even fancier example demonstrating modeless operation, with options for multi-level and multi-selection. The program also illustrates INFLD checkboxes, buttons, TPRINT, some other GUI features, including tool tips and dialog boxes. |
XTRA4 |
Simple example of using two XTREE controls at the same time. |
XTRA5 |
Demonstrates checkboxes and editable text and combo boxes. |
XTRA5M |
Variation of XTRA5 using multi-selection. |
XTRA6 |
Illustrates radio buttons, multi-line editable cells, colors. |
XTRA7 |
Images and multi-line editable text. (A simple application for associating comments with images.) |
XTRFIL |
File-based example. You supply the file, including the column definitions in the first row. Demonstrates both single and multiple selection options, and also the XTF_FILANS flag. |