Extended text alignment

With M!Table you can define the horizontal and vertical text/checkbox alignment of cells, columns and rows.
To set the text alignment for a particular item ( e.g. a cell ), simply set the appropriate text alignment flags:

Column Flags
MTBL_COL_FLAG_TXTALIGN_LEFT
MTBL_COL_FLAG_TXTALIGN_CENTER
MTBL_COL_FLAG_TXTALIGN_RIGHT

MTBL_COL_FLAG_TXTALIGN_TOP
MTBL_COL_FLAG_TXTALIGN_VCENTER
MTBL_COL_FLAG_TXTALIGN_BOTTOM

Column Header Flags
MTBL_COLHDR_FLAG_TXTALIGN_LEFT
MTBL_COLHDR_FLAG_TXTALIGN_RIGHT

Column Header Group Flags
MTBL_CHG_FLAG_TXTALIGN_LEFT
MTBL_CHG_FLAG_TXTALIGN_RIGHT

Row Flags
MTBL_ROW_TXTALIGN_LEFT
MTBL_ROW_TXTALIGN_CENTER
MTBL_ROW_TXTALIGN_RIGHT

MTBL_ROW_TXTALIGN_TOP
MTBL_ROW_TXTALIGN_VCENTER
MTBL_ROW_TXTALIGN_BOTTOM

Cell Flags
MTBL_CELL_FLAG_TXTALIGN_LEFT
MTBL_CELL_FLAG_TXTALIGN_CENTER
MTBL_CELL_FLAG_TXTALIGN_RIGHT

MTBL_CELL_FLAG_TXTALIGN_TOP
MTBL_CELL_FLAG_TXTALIGN_VCENTER
MTBL_CELL_FLAG_TXTALIGN_BOTTOM


Hints and tips

Horizontal text alignment of columns
You may wonder why M!Table provides flags to define the horizontal text alignment of columns, though Gupta provides appropriate COL_Justify* flags.
Well, there are some differences:

  • For columns of cell type "Standard" and/or "Drop Down List", the Gupta flags also define the horizontal alignment in editing mode, the M!Table flags not
  • When M!Table must determine the effective horizontal text alignment of a cell, it does following:
    1. Check if the cell has appropriate M!Table flags. If yes, use them.
    2. Check if the column has appropriate M!Table flags. If yes, use them.
    3. Check if the row has appropriate M!Table flags. If yes, use them.
    4. Use the Gupta flags.
    You see, if you use the M!Table flags, the alignment on column level will override the alignment on row level.

    With MTblDefineEffCellPropDet you can control how the effective horizontal text alignment is determined, e.g. you can define that M!Table checks the row flags prior to the column flags.

Created with the Personal Edition of HelpNDoc: Effortlessly Edit and Export Markdown Documents