This new field allows single or double-click (or ENTER) to toggle the expanded/collapsed state of multi-level items via new bits in the XTR'SHOWBUTTON field, defined in XTREE.DEF as:
Value |
Value |
Description |
XTSBF_LCLICK |
&h0040 |
single click expands/collapses |
XTSBF_DBLCLK |
&h0080 |
double click (or ENTER) expands/collapses |
Burying these options in the XTR'SHOWBUTTON field may be slightly counter-intuitive since they have nothing to do with whether the buttons are visible, but the features are closely related enough that it seemed better than introducing yet another field to the XTRCTL structure.
Note that the double-click option (XTSBF_DBLCLK) probably only makes sense when there is no other action or meaning associated with parent tree items, since it stifles the ability to "choose" the item.