lazarus/examples/gridexamples/merged_cells
2018-09-02 13:16:06 +00:00
..
mainform.lfm Examples: Undo unintentional change in gridexamples/merged_cells by prev commit (r58817) 2018-09-02 13:16:06 +00:00
mainform.pas Examples: Undo unintentional change in gridexamples/merged_cells by prev commit (r58817) 2018-09-02 13:16:06 +00:00
mcgrid.pas LCL: reset row's top and bottom bounds after drawing cell and fix merge cells example issue #34017 2018-08-15 08:07:10 +00:00
mergedcells_project.lpi TurboPower_ipro: Fix IpHtmlPanel ignoring linebreak between <p> nodes within a <td> node. Improvements in rendering distance between paragraphs. 2018-09-02 13:10:57 +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.