FastAddTable behaviour

  • I have used FastAddTable (the pointer version) extensively throughout a suite of programs (hence I'd like to stick with this method) but as a result of the upgrade, the newly created tables appear at the end of the text rather than at the current position.

    Here's some of my code. Many thanks

    • Offizieller Beitrag

    Hi,

    FastAddTable will add to the current table. So if you use TayblleAdd to create a table first that will be extended.

    But see the code in WPCtrRich.pas:
    TWPCustomRichText.FastAddTable

    the line
    wptable := ActiveText.CreateTable(nil);

    can be changed into

    wptable := ActiveParagraph.CreateTable(nil);

    that will create the table after the current paragraph.

    Julian