Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Tabs in rich text

edited May 2003 in General
Some rich text editors support having different tab stops on different
lines. Examples are WordPad 5.1, and WPTools.

I had been using the add-on for WPTools for ReportBuilder, TppWPTRichText.
To fix a different problem, I dropped that component, and replaced it with a
TppDBRichText component. That component has an OnGetRichText event handler
which returns the rich text from a separate TWPRichText component.

But now I seem to have lost support for different tab stops on different
lines, when I preview or print. It looks like all lines in the rich text
use the first line's tab stops.

Does TppDBRichText support different tab stops on different lines? Do I
have support for it turned off somehow? (I don't want to go back to
TppWPTRichText & reintroduce the previous problem.)

Mike Carroll
==========
"If you want this process [bug-fixing] to converge, ya gotta take'em out
faster than ya put'em in."

Comments

  • edited May 2003
    Apparently I should have said different tab stops for different paragraphs,
    not for different lines. And I seem to be running into the "a
    TCustomRichEdit object has only one TParaAttributes object" limitation. I'm
    expecting the rich text to have multiple paragraphs, with tab settings for
    each, but it's not behaving that way.
  • edited May 2003
    Hi Mike,

    yes there is only one 'TParaAttributes' object but there could be many paragraphs.
    It depends on the cursor position, the current paragraph's attributes are accessible by 'TParaAttributes'.

    regards,
    Chris Ueberall;
This discussion has been closed.