mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-13 18:57:40 +01:00
SynMemo: missing properties/methods
git-svn-id: trunk@22665 -
This commit is contained in:
parent
47879f9a9e
commit
650d40ce24
@ -60,10 +60,15 @@ uses
|
|||||||
//SelStart and SelEnd are now in TCustomSynEdit //DDH Addition
|
//SelStart and SelEnd are now in TCustomSynEdit //DDH Addition
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
|
{ TCustomSynMemo }
|
||||||
|
|
||||||
TCustomSynMemo = class(TCustomSynEdit)
|
TCustomSynMemo = class(TCustomSynEdit)
|
||||||
public
|
public
|
||||||
function CharIndexToRowCol(Index: integer): TPoint; //as 2000-11-09
|
function CharIndexToRowCol(Index: integer): TPoint; //as 2000-11-09
|
||||||
function RowColToCharIndex(RowCol: TPoint): integer; //as 2000-11-09
|
function RowColToCharIndex(RowCol: TPoint): integer; //as 2000-11-09
|
||||||
|
procedure Append(const Value: String);
|
||||||
|
procedure Clear;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
TSynMemo = class(TCustomSynMemo)
|
TSynMemo = class(TCustomSynMemo)
|
||||||
@ -151,6 +156,7 @@ type
|
|||||||
property MaxLeftChar;
|
property MaxLeftChar;
|
||||||
property MaxUndo;
|
property MaxUndo;
|
||||||
property Options;
|
property Options;
|
||||||
|
property Options2;
|
||||||
property OverwriteCaret;
|
property OverwriteCaret;
|
||||||
property ReadOnly;
|
property ReadOnly;
|
||||||
property RightEdge;
|
property RightEdge;
|
||||||
@ -234,5 +240,15 @@ begin
|
|||||||
Result := Result + RowCol.x;
|
Result := Result + RowCol.x;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TCustomSynMemo.Append(const Value: String);
|
||||||
|
begin
|
||||||
|
Lines.Append(Value);
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TCustomSynMemo.Clear;
|
||||||
|
begin
|
||||||
|
Lines.Clear;
|
||||||
|
end;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user