Problem with SetListMarkerInfo and TRichView

General TRichView support forum. Please post your questions here
Post Reply
mamouri
Posts: 63
Joined: Sat Aug 19, 2006 5:06 am

Problem with SetListMarkerInfo and TRichView

Post by mamouri »

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: 17564
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

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 »

Thank u very much. it work like a charm.
Post Reply