Cell merging

With M!Table you can merge individual cells with a certain number of neighboring cells and/or rows.
The primary function for cell merging is MTblSetCellMergeEx.
Let's have a look at an example:

! Merge 5 columns and 5 rows with cell tbl1.col1 / row0
Call MTblSetCellMergeEx( tbl1.col1, 0, 5, 5, MTSM_REDRAW )
! Merge 5 columns and 5 rows with cell tbl1.col3 / row0
Call MTblSetCellMergeEx( tbl1.col3, 0, 5, 5, MTSM_REDRAW )
! Merge 1 column and 5 rows with cell tbl1.col3 / row3
Call MTblSetCellMergeEx( tbl1.col3, 3, 1, 5, MTSM_REDRAW )

As you can see, now we have 3 merges in this table.
Consider following:
- Row 0: The merge of col3 breaks the column merge of col1 ( we've defined 5 merged columns for col1 )
- Row 3: The merge of col3 breaks the row merge of col3 in row 0 ( we've defined 5 merged rows for col3 in row 0 )
- Row 3: The merge of col3 isn't breaked ( we've defined 1 merged column and 5 merged rows for col3 )

If row 0 is expanded, the row merges of col1 and col3 are breaked because row 1 has another row level than row 0:

 

Functions
MTblSetCellMerge Depreciated!
MTblSetCellMergeEx
MTblGetCellMerge Depreciated!
MTblGetCellMergeEx

MTblGetLastMergedCell

MTblGetMergeCell
MTblGetMergeCol Depreciated!

MTblObjFromPoint

Table flags
MTBL_FLAG_SORT_KEEP_ROWMERGE

Created with the Personal Edition of HelpNDoc: Full-featured EBook editor