mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
ADD: Viewer - draw cross when no file open
This commit is contained in:
parent
7cf551b952
commit
cc113bc625
1 changed files with 5 additions and 0 deletions
|
|
@ -634,7 +634,12 @@ end;
|
|||
procedure TViewerControl.Paint;
|
||||
begin
|
||||
if not IsFileOpen then
|
||||
begin
|
||||
Canvas.Pen.Color := Canvas.Font.Color;
|
||||
Canvas.Line(0, 0, ClientWidth - 1, ClientHeight - 1);
|
||||
Canvas.Line(0, ClientHeight - 1, ClientWidth - 1, 0);
|
||||
Exit;
|
||||
end;
|
||||
|
||||
Canvas.Font := Self.Font;
|
||||
Canvas.Brush.Color := Self.Color;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue