Hide

SftTree/DLL 7.5 - Tree Control

Display
Print

Cell Merging

The contents of a cell can merge into an adjacent cell (on the right), including the cell colors, fonts and graphics attributes.

If a cell is empty, i.e. has no cell text or graphic, the cell immediately to the left may merge into the empty cell, using the additional space to display its contents.

The column containing the cell has to be defined in the column's SFTTREE_COLUMN_EX (SFTTREE_COL_MERGE) structure, indicating that the cell may merge into the next column's empty cell. The next column has to be defined in the column's SFTTREE_COLUMN_EX (SFTTREE_COL_MERGEINTO) structure, indicating that it can be "merged into". The cell in the next column must be empty, i.e. it has no cell text or picture.

Column headers also use the settings found in the column's SFTTREE_COLUMN_EX structure. If a column header is empty and the previous column has been adequately defined in the column's SFTTREE_COLUMN_EX structure, the column headers merge. If the columns are resizable, a small resizing handle is shown in the combined column header.