Adjusting tabstops programatically

  • I create a WPRichText layout programatically based on other WPRIchText data. I indent most of the data from the other WPRichText controls when merging it into the master WPRichText, and therefore I have to adjust the tabstops by the indent amount. Currently I do this:

    Code
    for i := 0 to TABMAX-1 do
    begin
      if memoMerge.Header.TabPosTW[i] > 0 then
        Inc( memoMerge.Header.TabPosTW[i], oleft );
    end;
    memoMerge.Header.ReCalculateTabs;


    I could be wrong, but it appears to be also changing the tabstops in areas I don't want them adjusted, like in the header/footer.

    Do I have to go through each paragragh and clear/assign new tabstops? If so, could someone post a sample?

    Thanks,
    Eric

  • Nevermind. I was adjusting the tabstops prior to merging, so it was OK. However, the problem is that I have more than TABMAX tabstops once I merge all the other WPRichText.

    How can I get more than TABMAX tabstops? I am using WPTools 4.11d.

    Eric