Page 1 of 1
How to select the whole inserted RVF stuff
Posted: Sat Sep 11, 2010 7:43 am
by lovethisgame
When I insert a RVF stream from a Richview into a RichViewEdit, it automatically select the part before the inserted, how can i select the whole inserted stuff instead of that.
Posted: Sat Sep 11, 2010 12:36 pm
by Sergey Tkachenko
Code: Select all
uses RVLinear;
var SelStart, SelLength, SelStart2: Integer;
begin
RVGetSelection(RichViewEdit1, SelStart, SelLength);
if SelLength<0 then
inc(SelStart, SelLength);
RichViewEdit1.Insert....
SelStart2 := RVGetLinearCaretPos(RichViewEdit1);
RVSetSelection(RichViewEdit1, SelStart, SelStart2-SelStart);
end;