Page 1 of 1

Locking the margins

Posted: Thu Apr 13, 2006 8:03 pm
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

found the answer

Posted: Thu Apr 13, 2006 9:05 pm
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.