srod wrote:How about using a column of checkboxes and those which are checked get deleted when the user hits the delete button etc?
I think it's easy to solve with egrid_CreateCellCallback().
srod wrote:If this is a big problem then I'll reinstate the original functionality, but then the emphasise is on the developer to hide the selection box whenever another control receives the focus.
It's better if it is possible to control it. Perhaps it would be a good idea to use a flag like '#egrid_AlwaysShowSelection'
Have managed to 'persuade' Tailbite to produce a unicode version of egrid - which doesn't crash!!!
A bit more testing to do, but fingers crossed...
**EDIT: have been busy today! Shift/tab works as requested. Have added an extra flag #egrid_AlwaysShowSelection used when creating an egrid which works as requested by Thorsten1867 (above) and of course have managed to create a unicode version of the library.
I won't be able to upload until later though as I am away from my broadband connection at the moment.
@mskuma: I don't necessarily see a problem with using an egrid for large datasets. After all, an egrid is simply a ListIcon given an extra polish and a fresh coat of paint! If it does slow down too much, then consider using a standard header as opposed to a custom one. Also, go easy on other customisations perhaps.
I do intend allowing for 'virtual' egrids at a later date which should also help when using very large data sets etc.
I may look like a mule, but I'm not a complete ass.
Have added 'shift/tab' functionality to tab in reverse through the grid etc. Have ammended the egrid_AddColumn() function so that a column index of -1 causes the new column to be appended etc. Have also added the creation flag #egrid_AlwaysShowSelection which prevents the selection box from vanishing whenever an egrid loses focus.
Most importantly, however, is the fact that the download now contains 3 versions of the library:
an ANSI non-threadsafe version
an ANSI threadsafe version
a UNICODE non-threadsafe version (for testing purposes only at the moment).
If the unicode version proves to be stable then a 4th version will be forthcoming; a UNICODE threadsafe...
Thorsten1867 wrote:I've download the new version.
Now I get the error, that 'egrid_containerID()' is missing.
Thorsten, this function is no longer exported because with all the added commands, I could see no need for it. I can't think why you'd want the controlid of the container gadget?
Thanks! It works, but I don't understand, why it must be removed. With 'egrid_containerID()' it was possibel to use eGrid with other libaries (e.g. PV_Gadgets).
I can reinstate the command for the next version if you'd like. I must admit though that I'd rather keep it out as it encourages some 'dodgy dealings' where an egrid is concerned and if such code breaks the lib, then I cannot really be held to account!
I may look like a mule, but I'm not a complete ass.
btw, I have fixed the gridline alignment problem - turned out to be easier than I thought!
The fix will only work if you use a custom header with an egrid as I have no control over the placement of the gridlines or the painting of a standard Windows header.
Will upload new versions tomorrow afternoon.
I may look like a mule, but I'm not a complete ass.