syendit: fixed SetScrollBars calling RecreateWnd

git-svn-id: trunk@15877 -
This commit is contained in:
mattias 2008-07-26 16:59:54 +00:00
parent 6f64b8639c
commit 90cb8f39ac
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;