mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 21:40:20 +02:00
syendit: fixed SetScrollBars calling RecreateWnd
git-svn-id: trunk@15877 -
This commit is contained in:
parent
6f64b8639c
commit
90cb8f39ac
@ -4998,10 +4998,9 @@ procedure TCustomSynEdit.SetScrollBars(const Value: TScrollStyle);
|
||||
begin
|
||||
if (FScrollBars <> Value) then begin
|
||||
FScrollBars := Value;
|
||||
// TODO: MWE: check if there is a better solution in lazarus
|
||||
// RecreateWnd is depriciated in Lazarus
|
||||
RecreateWnd{$IFDEF SYN_LAZARUS}(Self){$ENDIF};
|
||||
|
||||
{$IFNDEF SYN_LAZARUS}
|
||||
RecreateWnd(Self)
|
||||
{$ENDIF};
|
||||
UpdateScrollBars;
|
||||
Invalidate;
|
||||
end;
|
||||
|
@ -2340,6 +2340,7 @@ begin
|
||||
// since only the interface (or custom interface dependent controls) should
|
||||
// call us, the handle is always created
|
||||
DebugLN('WARNING: obsolete call to RecreateWnd for %s', [AWinControl.ClassName]);
|
||||
DumpStack;
|
||||
end;
|
||||
|
||||
IsFocused := AWinControl.Focused;
|
||||
|
Loading…
Reference in New Issue
Block a user