Draw a horizontal line

  • Arnd,

    While I always defer to Julian on all matters, until he suggests something differently, try this:

    Code
    WPRichText1.TextObjects.InsertNewObject(wpobjHorizontalLine,false,false).Height := 4;


    Note: I don't believe the second and third boolean parameters apply in this situation - they have to do with tags.

    I hope that's what you had in mind!

    Regards,
    diamond

  • Good grief, I'm so embarrassed! I didn't notice yours was a WPTools 4 post.... I can only plead it was midnight at the time I replied....

    Sorry for wasting your time. Yes, you're right, my solution was a pure WP5'ism. But see? Yet one more reason to upgrade to the latest and greatest...:)))

    Blushing,
    diamond

  • Hmm, even if i add the missing parameters to the InserClass method (i tried -1, -1 as stated in the help file), i didn't get a horizontal line.

    Do you have a sample program for drawing a horizontal line? I searched the demos dir, but didn't found one.

    Regards,

    Arnd