Hi,
how can i draw a horizontal line like the wordprocessor demo did?
I searched the help file, but i didn't find it.
Thanks,
Arnd
Hi,
how can i draw a horizontal line like the wordprocessor demo did?
I searched the help file, but i didn't find it.
Thanks,
Arnd
Arnd,
While I always defer to Julian on all matters, until he suggests something differently, try this:
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
Thanks, but i can't get it to work.
Could it be that the sample code is version 5 only?
Regards,
Arnd
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
Thanks Diamond,
but actually V4 also had a horizontal lines (with viewer possibilitiues but ...)
You can insert one using WPRichText.TextObjects.InsertClass('TWPOHorzLine')
Julian
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