mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 12:00:44 +02:00
LCL, win32: TMemo: remove Lines.BeginUpdate/EndUpdate for win32 for Delphi compatibility
git-svn-id: trunk@53888 -
This commit is contained in:
parent
98625cfd74
commit
5f5df812af
@ -206,16 +206,6 @@ begin
|
|||||||
FLines.Assign(Value);
|
FLines.Assign(Value);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCustomMemo.SetSelText(const Val: string);
|
|
||||||
begin
|
|
||||||
Lines.BeginUpdate;
|
|
||||||
try
|
|
||||||
inherited SetSelText(Val);
|
|
||||||
finally
|
|
||||||
Lines.EndUpdate;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TCustomMemo.SetScrollBars(const Value: TScrollStyle);
|
procedure TCustomMemo.SetScrollBars(const Value: TScrollStyle);
|
||||||
begin
|
begin
|
||||||
if Value <> FScrollbars then begin
|
if Value <> FScrollbars then begin
|
||||||
|
@ -202,6 +202,7 @@ type
|
|||||||
class procedure SetScrollbars(const ACustomMemo: TCustomMemo; const NewScrollbars: TScrollStyle); override;
|
class procedure SetScrollbars(const ACustomMemo: TCustomMemo; const NewScrollbars: TScrollStyle); override;
|
||||||
class procedure SetWordWrap(const ACustomMemo: TCustomMemo; const NewWordWrap: boolean); override;
|
class procedure SetWordWrap(const ACustomMemo: TCustomMemo; const NewWordWrap: boolean); override;
|
||||||
class procedure ScrollBy(const AWinControl: TWinControl; DeltaX, DeltaY: integer); override;
|
class procedure ScrollBy(const AWinControl: TWinControl; DeltaX, DeltaY: integer); override;
|
||||||
|
class procedure SetSelText(const ACustomEdit: TCustomEdit; const NewSelText: string); override;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ TWin32WSEdit }
|
{ TWin32WSEdit }
|
||||||
@ -1472,6 +1473,12 @@ begin
|
|||||||
RecreateWnd(ACustomMemo);
|
RecreateWnd(ACustomMemo);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
class procedure TWin32WSCustomMemo.SetSelText(const ACustomEdit: TCustomEdit;
|
||||||
|
const NewSelText: string);
|
||||||
|
begin
|
||||||
|
TWin32WSCustomEdit.SetSelText(ACustomEdit, NewSelText);
|
||||||
|
end;
|
||||||
|
|
||||||
class procedure TWin32WSCustomMemo.SetWordWrap(const ACustomMemo: TCustomMemo; const NewWordWrap: boolean);
|
class procedure TWin32WSCustomMemo.SetWordWrap(const ACustomMemo: TCustomMemo; const NewWordWrap: boolean);
|
||||||
begin
|
begin
|
||||||
// TODO: check if can be done without recreation
|
// TODO: check if can be done without recreation
|
||||||
|
@ -855,7 +855,6 @@ type
|
|||||||
procedure KeyUpAfterInterface(var Key: Word; Shift: TShiftState); override;
|
procedure KeyUpAfterInterface(var Key: Word; Shift: TShiftState); override;
|
||||||
procedure SetCaretPos(const Value: TPoint); override;
|
procedure SetCaretPos(const Value: TPoint); override;
|
||||||
procedure SetLines(const Value: TStrings);
|
procedure SetLines(const Value: TStrings);
|
||||||
procedure SetSelText(const Val: string); override;
|
|
||||||
procedure SetWantReturns(const AValue: Boolean);
|
procedure SetWantReturns(const AValue: Boolean);
|
||||||
procedure SetWantTabs(const NewWantTabs: boolean);
|
procedure SetWantTabs(const NewWantTabs: boolean);
|
||||||
procedure SetWordWrap(const Value: boolean);
|
procedure SetWordWrap(const Value: boolean);
|
||||||
|
@ -181,6 +181,7 @@ type
|
|||||||
class procedure SetWantTabs(const ACustomMemo: TCustomMemo; const NewWantTabs: boolean); virtual;
|
class procedure SetWantTabs(const ACustomMemo: TCustomMemo; const NewWantTabs: boolean); virtual;
|
||||||
class procedure SetWantReturns(const ACustomMemo: TCustomMemo; const NewWantReturns: boolean); virtual;
|
class procedure SetWantReturns(const ACustomMemo: TCustomMemo; const NewWantReturns: boolean); virtual;
|
||||||
class procedure SetWordWrap(const ACustomMemo: TCustomMemo; const NewWordWrap: boolean); virtual;
|
class procedure SetWordWrap(const ACustomMemo: TCustomMemo; const NewWordWrap: boolean); virtual;
|
||||||
|
class procedure SetSelText(const ACustomEdit: TCustomEdit; const NewSelText: string); override;
|
||||||
end;
|
end;
|
||||||
TWSCustomMemoClass = class of TWSCustomMemo;
|
TWSCustomMemoClass = class of TWSCustomMemo;
|
||||||
|
|
||||||
@ -649,6 +650,17 @@ class procedure TWSCustomMemo.SetScrollbars(const ACustomMemo: TCustomMemo; cons
|
|||||||
begin
|
begin
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
class procedure TWSCustomMemo.SetSelText(const ACustomEdit: TCustomEdit;
|
||||||
|
const NewSelText: string);
|
||||||
|
begin
|
||||||
|
TCustomMemo(ACustomEdit).Lines.BeginUpdate;
|
||||||
|
try
|
||||||
|
TWSCustomEdit.SetSelText(ACustomEdit, NewSelText);
|
||||||
|
finally
|
||||||
|
TCustomMemo(ACustomEdit).Lines.EndUpdate;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
class procedure TWSCustomMemo.SetWantTabs(const ACustomMemo: TCustomMemo; const NewWantTabs: boolean);
|
class procedure TWSCustomMemo.SetWantTabs(const ACustomMemo: TCustomMemo; const NewWantTabs: boolean);
|
||||||
begin
|
begin
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user