mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 10:39:18 +02:00
designer: cleanup
git-svn-id: trunk@21839 -
This commit is contained in:
parent
3009135479
commit
d7d5afb621
@ -1417,22 +1417,18 @@ begin
|
||||
LastPaintSender:=Sender;
|
||||
|
||||
if IsDesignerDC(Form.Handle, TheMessage.DC) then
|
||||
begin
|
||||
DoPaintDesignerItems;
|
||||
end
|
||||
DoPaintDesignerItems
|
||||
else
|
||||
begin
|
||||
// client grid
|
||||
if (Sender is TWinControl)
|
||||
and (csAcceptsControls in Sender.ControlStyle) then begin
|
||||
if (Sender is TWinControl) and (csAcceptsControls in Sender.ControlStyle) then
|
||||
PaintClientGrid(TWinControl(Sender),DDC);
|
||||
end;
|
||||
|
||||
if (WidgetSet.GetLCLCapability(lcCanDrawOutsideOnPaint) <> 0) and
|
||||
not EnvironmentOptions.DesignerPaintLazy then
|
||||
DoPaintDesignerItems;
|
||||
end;
|
||||
|
||||
|
||||
// clean up
|
||||
DDC.Clear;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user