Create Table - Borders

    • Offizieller Beitrag

    Q: Below is a test of the suggested code for creating a table (from the V5
    docs). It shows the cell contents, but no borders. It seems to me it
    should show borders, so what am I doing wrong?

    A: In this example the table (= parent of all rows) gets a border but this is currently not displayed since RTF does not use this paradigm.

    The ASet(WPAT_BorderFlags, WPBRD_DRAW_All4); should be
    after the CreateRow(nil, TRUE).

    Explanation: CreateRow creates an object which is used to handle the creation of a table row. This object is freed by EndRow.
    The object inherits from TWPTextStyle and is used as default style for all cells when they are created. (This means you can add and remove properties while you are creating styles)