New text format functions (set tabs and set alignment)

Idea created by intex on Mar 3, 2016
    Active
    Score23

    So far we have text functions to alter font, font size and style. This way you can programatically design a text output very well.

     

    But two things are missing:

     

    You can´t set the text alignment to left, right, center and block. Function should be

     

    SetAlignment(direction)

     

    where direction can be left, right, center and block.

     

    And you can´t set the tabs in the ruler. Without that you cannot calculate a well formatted text table, especially if numbers and proportional fonts are involved. Therefor we need a function

     

    SetTabs(position;type;[position1;type1])

     

    where position gives the position of the tab in cm, inch or pt while type is left, right, center or decimal.

     

    Via Char(9) I can jump to these tab stops already. Perhaps a function

     

    Tab

     

    would be easier to understand.