Please enable JavaScript to view this site.

This flag will auto-expand the columns to fill the width of the tree control, eliminating the blank space that will otherwise appear when XTR.CLOSEDENDED is 1 and the overall tree control is wider than it needs to be for the current data.

define XTF2_AUTOEXPCOL= &h00000010     ! Auto Expand Columns to fill control

The expansion operation increases the width of the visible columns by a uniform percentage rather than by a fixed number of pixels, thus preserving the relative widths. The last column will pick up any extra pixels left over from rounding and if there is no vertical scroll bar.

The flag is ignored in split (XTF2_SPLIT) and open-ended (XTR.CLOSEDENDED=0) controls.

History

A-Shell 5.1.1176 of 16 March 2010: XTF2_AUTOEXPCOL no longer automatically overrides the wrap option in the last column. If any columns have the wrap attribute, it assumes that there will be a vertical scroll bar and calculates the column width expansion accordingly, leaving the wrap settings in place. The only downside of this change is that if there are not enough items to require a vertical scroll bar, you could end up with a vertical white strip on the right edge, where the vertical scroll bar would have gone.

 

Created with Help+Manual 9 and styled with Premium Pack Version 5 © by EC Software