General TRichView support forum. Please post your questions here
mamouri
Posts: 63 Joined: Sat Aug 19, 2006 5:06 am
Post
by mamouri » Sun Nov 19, 2006 5:54 pm
Hi
I use a code like this for adding list to richview. But it doesn't work and raise an exception:
Code: Select all
RV.SetListMarkerInfo(-1,0,0,1,0,False);
RV.AddNLWTag('test', 10), 0, 0, 0);
Do you have an idea why this occur and is another way for adding List to RV?
Thank you
Sergey Tkachenko
Site Admin
Posts: 17559 Joined: Sat Aug 27, 2005 10:28 am
Contact:
Post
by Sergey Tkachenko » Sun Nov 19, 2006 6:12 pm
You add a list marker, then add a text from new line.
It's wrong, list markers cannot be the only item in paragraph, you must add next item in the same paragraph (ParaNo parameter of AddNLW must be = -1)
mamouri
Posts: 63 Joined: Sat Aug 19, 2006 5:06 am
Post
by mamouri » Sun Nov 19, 2006 6:27 pm
Thank u very much. it work like a charm.