[Lazarus] Vertical String Grid

Graeme Geldenhuys graeme at geldenhuys.co.uk
Fri Dec 6 07:47:47 CET 2013


On 2013-12-03 15:12, Richard Mace wrote:
> Could you give me any hints or example code?

You can do whatever painting you want in the OnDrawCell. Combine that
with hiding the column titles and grid lines, and pretty much have a
blank canvas to paint anything. Google TStringGrid and OnDrawCell.

Here are some results:

 http://forum.lazarus.freepascal.org/index.php?topic=7529.0

 http://docwiki.embarcadero.com/CodeExamples/XE4/en/OnDrawCell_%28Delphi%29

 http://stackoverflow.com/questions/3540570/delphi-how-to-make-cells-texts-in-tstringgrid-center-aligned


Here are some of my own results:
  http://geldenhuys.co.uk/~graemeg/stringgrid1.png
  http://geldenhuys.co.uk/~graemeg/stringgrid2.png


Regards,
  Graeme


-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/




More information about the Lazarus mailing list