This one is the successor to my original control and is a complete rewrite in that it is now based entirely on custom draw techniques and thus allows various gadgets to be embedded within the cells of the grid. There are 4 demo progs to give users an idea of how it all works.
Features include:
- set row height
- multiple colours / fonts etc.
- each cell is of a particular type, namely: 'string', 'static string', 'editable combobox', 'combobox', 'checkbox', 'static checkbox' and 'PB image' (with transparent background).
- complete control over user actions
- complete validation of data being entered, right down to the individual keypress
- paste cells from clipboard - paste multiple cells from spreadsheets.
- live updates to a database easily coded into an application
- justify text (left, center or right) in individual cells
Please let me know of any bugs or pass along any comments as I am keen to get this finished and wrapped up ready for my next project.
Regards.
Click to download
1st fix: -2 memory leaks spotted and plugged (11/11/05)
Added: Centered column headings (12/11/05)
Improved: Horizontal scrolling now much faster (12/11/05)
Added: Justify text (left, center or right) in individual cells (13/11/05)
Added: User guide in .pdf format (14/11/05)
Added: flag to egrid_SelectCell() command to simulate double-clicking of cell through code (25/11/05)
Added: created user library (Tailbite) so use of include files can be avoided (25/11/05)
Fixed: Bug - one command was not exported in the user library; doh! (25/11/05)
Fixed: One absolute stinker of a problem when using egrids under Win 98 SE. Have had to add a command for closing an egrid, namely: egrid_FreeGadget(#gadget). (30/11/05)
Fixed: Bug - a bit of a 'quirk' revealed when selecting cells through a Cellcallback function. (22/12/05)