You've already forked lazarus-ccr
richmemo: make indeltext method public
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3787 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -119,6 +119,8 @@ type
|
|||||||
function LoadRichText(Source: TStream): Boolean; virtual;
|
function LoadRichText(Source: TStream): Boolean; virtual;
|
||||||
function SaveRichText(Dest: TStream): Boolean; virtual;
|
function SaveRichText(Dest: TStream): Boolean; virtual;
|
||||||
|
|
||||||
|
function InDelText(const UTF8Text: string; InsStartChar, ReplaceLength: Integer): Integer; virtual;
|
||||||
|
|
||||||
procedure SetSelLengthFor(const aselstr: string);
|
procedure SetSelLengthFor(const aselstr: string);
|
||||||
|
|
||||||
function Search(const ANiddle: string; Start, Len: Integer; const SearchOpt: TSearchOptions): Integer;
|
function Search(const ANiddle: string; Start, Len: Integer; const SearchOpt: TSearchOptions): Integer;
|
||||||
@ -515,6 +517,16 @@ begin
|
|||||||
Result := false;
|
Result := false;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TCustomRichMemo.InDelText(const UTF8Text: string; InsStartChar, ReplaceLength: Integer): Integer;
|
||||||
|
begin
|
||||||
|
Result:=0;
|
||||||
|
if not HandleAllocated then HandleNeeded;
|
||||||
|
if HandleAllocated then begin
|
||||||
|
TWSCustomRichMemoClass(WidgetSetClass).InDelText(Self, UTF8Text, InsStartChar, ReplaceLength);
|
||||||
|
Result:=UTF8length(UTF8Text);
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TCustomRichMemo.SetSelLengthFor(const aselstr: string);
|
procedure TCustomRichMemo.SetSelLengthFor(const aselstr: string);
|
||||||
begin
|
begin
|
||||||
SelLength:=UTF8Length(aselstr);
|
SelLength:=UTF8Length(aselstr);
|
||||||
|
Reference in New Issue
Block a user