tsc_UiSpecialWidths

This enum defines some special values which may be used in place of a numeric width in the tsc_UiCell::Width(int width) method:

 

enum tsc_UiSpecialWidths
{
    tsc_UiWidthInherit    = -1,
    tsc_UiWidthDistribute = -2,
    tsc_UiWidthOfContent  = -3
};

Enumeration members

 tsc_UiWidthInherit
If this value is used to specify a cell's width, then the width of the column in which the cell finds itself is used.   

tsc_UiWidthDistribute
When this value is used, the width of all cells with a width of tsc_UiWidthDistribute will be made the same size.  The actual size will be the full width of the control minus any cells with an explicit size (including tsc_UiWidthInherit), divided by the number of cells specified as tsc_UiWidthDistribute.

 tsc_UiWidthOfContent
This value is used to size the cell automatically.  This value should be specified for all cells in the same column and within the same subtree.  All of the cells will be sized to the width of the longest cell text within the subtree.