Page 1 of 1

Problem with SetListMarkerInfo and TRichView

Posted: Sun Nov 19, 2006 5:54 pm
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

Posted: Sun Nov 19, 2006 6:12 pm
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)

Posted: Sun Nov 19, 2006 6:27 pm
by mamouri
Thank u very much. it work like a charm.