Page 1 of 1

Goto first char

Posted: Fri Nov 18, 2005 4:00 pm
by Marcel
How I can move the cursor to the first char of paragraph

Posted: Fri Nov 18, 2005 4:31 pm
by Sergey Tkachenko
To the very first char:

Code: Select all

rve.SetSelectionBounds(0, rve.GetOffsBeforeItem(0), 0, rve.GetOffsBeforeItem(0));
To the first char of the current paragraph:

Code: Select all

i := rve.CurItemNo;
while not rve.IsParaStart(i) do
  dec(i);
rve.SetSelectionBounds(i, rve.GetOffsBeforeItem(i), 0, rve.GetOffsBeforeItem(i));
To the beginning of the specified paragraph:
http://www.trichview.com/forums/viewtopic.php?t=7

Posted: Fri Nov 18, 2005 10:07 pm
by Marcel
Thank you very much