TRichViewEdit as a single line edit box
Posted: Wed Jun 14, 2006 11:19 pm
I'm using a TRichViewEdit (ver 1.9.15) as a single-line edit box and preventing word wrap w/ the following code:
for i := 0 to RVStyle1.ParaStyles.Count-1 do
RVStyle1.ParaStyles.Options := RVStyle1.ParaStyles.Options+[rvpaoNoWrap];
RichView1.Reformat;
(which works great)
However I am able to scroll the text in the box vertically about one-half of a line using the up and down arrow keys.
How do I prevent this vertical strolling?
Thanks!
for i := 0 to RVStyle1.ParaStyles.Count-1 do
RVStyle1.ParaStyles.Options := RVStyle1.ParaStyles.Options+[rvpaoNoWrap];
RichView1.Reformat;
(which works great)
However I am able to scroll the text in the box vertically about one-half of a line using the up and down arrow keys.
How do I prevent this vertical strolling?
Thanks!