Add Text manually to RVEdit

General TRichView support forum. Please post your questions here
Post Reply
sh17
Posts: 44
Joined: Wed Oct 04, 2006 6:55 am

Add Text manually to RVEdit

Post by sh17 »

Hi, how can i add text items manually and format each for themselves

i want to add:

this is a test with bold and italic items

rv.AddTextNLW('this is a test with ',0,paraStyle,paraStyle,true);
rv.AddTextNLW('bold',1,paraStyle,paraStyle,true);
rv.AddTextNLW(' and ',0,paraStyle,paraStyle,true);
...
insert crlf after each item. how can i prevent crlf?
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Add Text manually to RVEdit

Post by Sergey Tkachenko »

rv.AddTextNLW('this is a test with ',0,paraStyle,paraStyle,true);
rv.AddTextNLW('bold',1,-1,paraStyle,true);
rv.AddTextNLW(' and ',0,-1,paraStyle,true);
Post Reply