Saboten
Saboten

Reputation: 61

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?

Upvotes: 5

Views: 1887

Answers (1)

RG_DATA
RG_DATA

Reputation: 11

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';

Upvotes: 1

Related Questions