XTREE enhancement: new field added to XTRCTL structure to support flags relating to column header style:
...
MAP2 USRCFG,B,1 ! user save/restore cfg flags - XTUCFG_xxx
MAP2 HEADERSTYLE,B,1 ! col header style flags - XTHSF_xxx
MAP2 UNUSED,X,15 ! (was 16)
The style flags are:
Symbol |
Value |
Meaning |
---|---|---|
XTHSF_VCENTER |
&h00 |
horizontal alignment |
XTHSF_TOP |
&h01 |
top alignment |
XTHSF_BOTTOM |
&h02 |
horizontal alignment |
XTHSF_NOTBTN |
&h20 |
headers are simple titles, not buttons |
XTHSF_BTNSTAY |
&h40 |
header buttons stay down when clicked (if not NOTBTN) |
XTHSF_DISABLED |
&h80 |
header disabled, cannot be clicked |
The _VCENTER, _TOP and _BOTTOM flags control the vertical alignment of the header text. (The default is XTHSF_VCENTER.)
The _NOTBTN flag causes the column headers to act/look like ordinary text cells, rather than as buttons. (This will eliminate the highlighting of the column headers in editable trees, which is sometimes distracting.)
The last two flags are somewhat obscure, but are documented here for comleteness.
The _BTNSTAY flag causes the header buttons to stay in the down position when clicked. (Only effective when not sorting, so this is of minimal value also.)
The _DISABLED flag disables the click-sensitivity of the headers (which effectively disabled sorting, so is more or less subservient to the XTF_SORT flag).
(XTREE.MAP, XTREE.DEF, XTREE.SDF updated accordingly)