lazarus/examples/gridexamples/merged_cells
maxim 2e62d0daaa Merged revision(s) 58428 #b9a983f064 from trunk:
Examples: Fix uninitialized variable issue in gridexamples/merged_cells (https://forum.lazarus.freepascal.org/index.php/topic,41757.msg290284)
........

git-svn-id: branches/fixes_1_8@58726 -
2018-08-16 22:36:06 +00:00
..
mainform.lfm
mainform.pas
mcgrid.pas Merged revision(s) 58428 #b9a983f064 from trunk: 2018-08-16 22:36:06 +00:00
mergedcells_project.lpi Merged revision(s) 58428 #b9a983f064 from trunk: 2018-08-16 22:36:06 +00:00
mergedcells_project.lpr
readme.txt

--------------------------------------------------------------------------------
merged_cells
--------------------------------------------------------------------------------

In this sample project you'll find a derived stringgrid which allows to combine
adjacent cells to a larger block ("merge") easily.

For this purpose you must
- add goColSpanning to the grid's Options
- write an event handler for OnMergeCells to define the range of cells to be 
  merged - see the demo project.
  
In addition, this enhanced grid implements another event handler, OnDrawCellText,
which allows to hook into the text painting process for each cell. This way it
is relatively easy to draw word-wrapped text, vertical text, 
centered/right-aligned text, etc - again, see the demo project.