-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOutputPlus.pas
44 lines (29 loc) · 916 Bytes
/
OutputPlus.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
unit OutputPlus;
interface
uses Classes, Windows, Graphics, Grids, SysUtils;
procedure DrawCellPlus(StringGrid:TStringGrid; ACol,
ARow: Integer; Rect: TRect; State: TGridDrawState; MyStyle:Integer);
implementation
procedure DrawCellPlus(StringGrid:TStringGrid; ACol,
ARow: Integer; Rect: TRect; State: TGridDrawState; MyStyle:Integer);
begin
With StringGrid Do
Begin
if (ARow > 0) and (MyStyle = 1)
or (ACol > 0) and (MyStyle = 0) then
begin
if Odd(ARow) then Canvas.Brush.Color := $00FDF8F4
else Canvas.Brush.Color := clWhite;
if (gdSelected in State) then
begin
Canvas.Brush.Color := $00FBEEE3;//$00FF8000;
Canvas.Font.Color := clBlack;
end
else
Canvas.Font.Color := clBlack;
Canvas.FillRect(Rect);
Canvas.TextRect(Rect, Rect.Left,Rect.Top, Cells[Acol, Arow]);
end;
End;
end;
end.