mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 09:40:21 +02:00
SynMemo: published a few missing properties. Issue #0026324
SynEdit: added Clear and Append git-svn-id: trunk@47510 -
This commit is contained in:
parent
652c828a0a
commit
36b209522b
@ -891,7 +891,13 @@ type
|
||||
property IsBackwardSel: Boolean read GetIsBackwardSel;
|
||||
property SelText: string read GetSelText write SetSelTextExternal;
|
||||
|
||||
// Text
|
||||
// Text Raw (not undo-able)
|
||||
procedure Clear;
|
||||
procedure Append(const Value: String);
|
||||
property LineText: string read GetLineText write SetLineText; // textline at CaretY
|
||||
property Text: string read SynGetText write SynSetText; // No uncommited (trailing/trimmable) spaces
|
||||
|
||||
// Text (unho-able)
|
||||
procedure ClearAll;
|
||||
procedure InsertTextAtCaret(aText: String; aCaretMode : TSynCaretAdjustMode = scamEnd);
|
||||
|
||||
@ -907,8 +913,6 @@ type
|
||||
aSelectionMode: TSynSelectionMode = smNormal
|
||||
);
|
||||
|
||||
property LineText: string read GetLineText write SetLineText;
|
||||
property Text: string read SynGetText write SynSetText; // No uncommited (trailing/trimmable) spaces
|
||||
|
||||
function GetLineState(ALine: Integer): TSynLineState;
|
||||
procedure MarkTextAsSaved;
|
||||
@ -4140,6 +4144,16 @@ begin
|
||||
SetParagraphBlock(CaretXY);
|
||||
end;
|
||||
|
||||
procedure TCustomSynEdit.Clear;
|
||||
begin
|
||||
FTheLinesView.Clear;
|
||||
end;
|
||||
|
||||
procedure TCustomSynEdit.Append(const Value: String);
|
||||
begin
|
||||
FTheLinesView.Append(Value);
|
||||
end;
|
||||
|
||||
procedure TCustomSynEdit.DoBlockSelectionChanged(Sender : TObject);
|
||||
begin
|
||||
StatusChanged([scSelection]);
|
||||
|
@ -113,12 +113,15 @@ type
|
||||
property InsertMode;
|
||||
property Keystrokes;
|
||||
property MouseActions;
|
||||
property MouseTextActions;
|
||||
property MouseSelActions;
|
||||
property Lines;
|
||||
property MaxLeftChar;
|
||||
property MaxUndo;
|
||||
property Options;
|
||||
property Options2;
|
||||
property MouseOptions;
|
||||
property VisibleSpecialChars;
|
||||
property OverwriteCaret;
|
||||
property ReadOnly;
|
||||
property RightEdge;
|
||||
|
Loading…
Reference in New Issue
Block a user