Extended grid and dbgrid
Original Reporter info from Mantis: wp @wpam
-
Reporter name:
Original Reporter info from Mantis: wp @wpam
- Reporter name:
Description:
The attachment contains extended versions of grids.pas and dbgrids.pas which implement a few additional features that I have been missing so far:
- the options goCellEllipsis and dgCellEllipsis for TCustomGrid/TStringGrid and TDBGrid, respectively, allow to display '...' at the end of cell texts that are wider than the cell rect
- the options goTruncCellHints/dgTruncCellHints allow to show a hint popup window if the cell text is truncated within the cell rectangle. Since this hint window is just the regular hint of the grid the ShowHint property must be activated for this option to work.
- the options goCellHints/dgCellHints allow to display an individual hint for each cell. The hint text is defined by the event handler for OnGetCellHint. Again, the ShowHint property needs to be set.
The zip file contains also two projects to demonstrate these options with a TStringGrid and a TDBGrid (the latter demo is a modified dblookup demo in the Lazarus examples folder).
I would appreciate if these modifications could be added to the Lazarus units.
Additional information:
The modifications of grids.pas and dbgrids.pas were made with the trunc versions of r33660.
Mantis conversion info:
- Mantis ID: 20777
- Version: 0.9.31 (SVN)
- Fixed in version: 0.9.31 (SVN)
- Fixed in revision: 34018 (#f87c768a)
- Monitored by: » GAMER (Miroslav Nyameshchuk)
- Target version: 0.99.0