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/ -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
