Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How simple to rotate text in stringgrid in delphi?

Is simple way to rotate text in stringgrid (90 and 45 degrees)? Or is there FREE component like TStringGrid with text rotation in cell?

like image 808
Saboten Avatar asked Nov 14 '22 09:11

Saboten


1 Answers

You can use ZColorStringGrid component (free). Component have additional properties for each cells (text rotation, indent, color, alignment). Support multiline text (and can rotate multiline text) and merge cells.

Code sample:

  ZColorStringGrid1.CellStyle[0, 1].Font.Name := 'Tahoma';
  ZColorStringGrid1.CellStyle[0, 1].Font.Size := 12;
  ZColorStringGrid1.CellStyle[0, 1].Rotate := 90;
  ZColorStringGrid1.Cells[0, 1] := 'Rotate' + sLineBreak + 'text' + sLineBreak + '90 degrees';
like image 137
RG_DATA Avatar answered Jan 11 '23 01:01

RG_DATA