mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-02 12:52:44 +02:00
SynEdit: remove DoubleBuffered hack because LCL fully supports it now
git-svn-id: trunk@58100 -
This commit is contained in:
parent
70b731c254
commit
79aba78f15
@ -607,7 +607,6 @@ begin
|
||||
KeyPreview:= True;
|
||||
// we have no resource => must be constructed using CreateNew
|
||||
inherited CreateNew(AOwner, 1);
|
||||
DoubleBuffered := GetSystemMetrics(SM_REMOTESESSION)=0;
|
||||
FItemList := TStringList.Create;
|
||||
Scroll := TSynBaseCompletionFormScrollBar.Create(self);
|
||||
Scroll.Kind := sbVertical;
|
||||
|
@ -8227,8 +8227,6 @@ end;
|
||||
|
||||
procedure TCustomSynEdit.CreateWnd;
|
||||
begin
|
||||
if not (csDesigning in ComponentState) then
|
||||
DoubleBuffered := DoubleBuffered or (GetSystemMetrics(SM_REMOTESESSION)=0); // force DoubleBuffered if not used in remote session
|
||||
inherited;
|
||||
if (eoDropFiles in fOptions) and not (csDesigning in ComponentState) then
|
||||
// ToDo DragAcceptFiles
|
||||
|
@ -1308,8 +1308,6 @@ constructor TSynChildWinControl.Create(AOwner: TComponent);
|
||||
begin
|
||||
inherited Create(AOwner);
|
||||
BorderStyle := bsNone;
|
||||
if AOwner is TWinControl then
|
||||
DoubleBuffered := TWinControl(AOwner).DoubleBuffered;
|
||||
end;
|
||||
|
||||
{ TSynGutterLineOverview }
|
||||
@ -1321,7 +1319,6 @@ begin
|
||||
TSynEditStringList(TextBuffer).AddNotifyHandler(senrTextBufferChanged, @BufferChanged);
|
||||
FWinControl := TSynChildWinControl.Create(Self);
|
||||
FWinControl.Parent := SynEdit;
|
||||
FWinControl.DoubleBuffered := SynEdit.DoubleBuffered;
|
||||
FWinControl.OnPaint := @PaintWinControl;
|
||||
|
||||
FLineMarks := TSynGutterLOvLineMarksList.Create;
|
||||
|
Loading…
Reference in New Issue
Block a user