You've already forked lazarus-ccr
Sudoku: center text in cells.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7233 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -159,7 +159,11 @@ procedure TForm1.SGridPrepareCanvas(sender: TObject; aCol, aRow: Integer;
|
||||
aState: TGridDrawState);
|
||||
var
|
||||
NeedsColor: Boolean;
|
||||
GridTextStyle: TTextStyle;
|
||||
begin
|
||||
GridTextStyle.Alignment := taCenter;
|
||||
GridTextStyle.Layout := tlCenter;
|
||||
(Sender as TStringGrid).Canvas.TextStyle := GridTextStyle;
|
||||
NeedsColor := False;
|
||||
if aCol in [0..2, 6..8] then
|
||||
begin
|
||||
|
Reference in New Issue
Block a user