mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 11:19:26 +02:00
LCL/Paintbox: Fix incorrect painting of PaintBox frame and cross lines at design time. Issue #40198, patch by furious programming
This commit is contained in:
parent
a7f2330310
commit
483ae6e0f1
@ -27,15 +27,15 @@ end;
|
||||
procedure TPaintBox.Paint;
|
||||
begin
|
||||
if csDesigning in ComponentState then begin
|
||||
Canvas.Brush.Color := Color;
|
||||
with Canvas do
|
||||
begin
|
||||
Pen.Style := psDash;
|
||||
Pen.Color:=clBlack;
|
||||
Pen.Color := clBlack;
|
||||
Brush.Color := Self.Color;
|
||||
Brush.Style := bsClear;
|
||||
Rectangle(0, 0, Self.Width - 1, Self.Height - 1);
|
||||
Line(0,0,Self.Width-1,Self.Height-1);
|
||||
Line(Self.Width-1,0,0,Self.Height-1);
|
||||
Rectangle(0, 0, Self.Width, Self.Height);
|
||||
Line(0,0,Self.Width,Self.Height);
|
||||
Line(Self.Width,0,0,Self.Height);
|
||||
end;
|
||||
exit;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user