Locking the margins

General TRichView support forum. Please post your questions here
Post Reply
mgkrebbs
Posts: 10
Joined: Thu Feb 23, 2006 8:45 pm

Locking the margins

Post by mgkrebbs »

Hi folks,
I'm trying to lock a Richview editor's right margin to 750 pixels. I don't want the users to be able to change it. I start basically witht the RichView actions demo. What's the best way to do this? I tried setting the RichEdit1.Rightmargin=750 and disable the RVRuler1. But this had some weird results, often when I would go back into the screen to edit it again,
it would be wordwrapped with 1 character to a line. So al ine like:
Hello
would end up like:
H
e
l
l
o
mgkrebbs
Posts: 10
Joined: Thu Feb 23, 2006 8:45 pm

found the answer

Post by mgkrebbs »

I found the answer in this forum.
"Set MaxTextWidth and MinTextWidth properties to the desired value."

I had been serching gor the word "margins", which is why I hadn't found it.
Post Reply