This field supports flags relating to column header style. The style flags are:
Symbol |
Value |
Meaning |
XTHSF_VCENTER |
&h00 |
vertically centered in header cell |
XTHSF_TOP |
&h01 |
top alignment |
XTHSF_BOTTOM |
&h02 |
aligned at bottom of header cell |
XTHSF_NOHIGHLIGHT |
&h20 |
headers are buttons, but don't get auto-highlighted when the column is active. |
XTHSF_BTNSTAY |
&h40 |
header buttons stay down when clicked (if not =NOHIGHLIGHT) |
XTHSF_DISABLED |
&h80 |
header disabled, cannot be clicked |
XTHSF_VCENTER, XTHSF_TOP and XTHSF _BOTTOM control the vertical alignment of the header text. The default is XTHSF_VCENTER.
XTHSF_NOHIGHLIGHT 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 completeness:
XTHSF_BTNSTAY causes the header buttons to stay in the down position when clicked. This is only effective when not sorting, so this is of minimal value also.
XTHSF_DISABLED flag disables the click-sensitivity of the headers—which effectively disables sorting, so is more or less subservient to the XTF_SORT flag.
Note: In addition to these various options relating to the style of the header, be aware that you can hide the header entirely by setting the XTR.HIDEHEADER field to 1.