Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
procedure TForm1.StringGrid1DrawCell(Sender: TObject; ACol, ARow: Integer; Rect: TRect; State: TGridDrawState);
var
text: string;
WidthOfText: integer;
WidthOfCell: integer;
LeftOffset: integer;
begin
with StringGrid1 do begin
text := Cells[ACol,ARow];
WidthOfText := Canvas.TextWidth(text);
WidthOfCell := ColWidths[ACol];
LeftOffset := WidthOfCell - WidthOfText;
Canvas.TextRect(Rect,Rect.Left+LeftOffset,Rect.Top,text);
end;
end;