Adding Checkboxes to a Tree View |
You can add checkboxes to a tree view by adding an additional column to the queries of tree view nodes. The additional column must have the "TREE_STATE" alias. For example: SELECT p.first_name||' '||p.last_name, DECODE(p.GENDER, 'M', 'Y', 'N') "tree_STATE" FROM person p ORDER BY p.last_name Once the TREE_STATE column has been added to the SQL query for the node, a checkbox is displayed for the node. Possible values and corresponding states for the checkbox are:
When a checkbox is displayed for an item, the user can change the state of the checkbox by using the mouse or the space bar. The sequence of values (states) that is looped through is N, Y, U then X. This sequence repeats indefinitely. You can restrict the loop using the following properties, available in the Windows Designer Property Inspector for the Tree View Node in question:
There are also two additional properties available for use with checkboxes in Tree Views:
|