Page 3 of 3

Posted: Wed Nov 30, 2005 9:21 pm
by srod
Dare2 wrote:What is your position on having this used in a closed-source and commercial app?

Specifically: I would like to use this instead of a listicongadget approach I am currently using in a "creation" wizard associated with an app that will be sold next year. Do I have your permission to do so?

Thanks again. :)
Absolutely. By all means go ahead. I don't see the point in releasing the code if I were then to restrict its use. But I appreciate your taking the time to seek clarification etc. A mention in the credits is all I ask!

btw: I'm still to fix the Win 98 SE problem discussed above. I know what the problem is and how to solve it, but am seeking a more sophisticated solution than the one I currently have. Should have it done within a day or so.

Posted: Wed Nov 30, 2005 11:29 pm
by srod
FIXED: the problem with Win 98 SE discussed above. Problem seems to be due to the way Win 98 releases the memory when freeing controls etc.

Unfortunately, you can no longer use the normal Purebasic command

Code: Select all

FreeGadget()
when freeing an egrid from code.

Instead, use the command

Code: Select all

egrid_FreeGadget()
(See user guide.)

My thanks to TerryHough for testing my various attempts at fixing this swine of a problem!

Posted: Wed Nov 30, 2005 11:31 pm
by Dare2
Thanks srod. :)

Posted: Thu Dec 22, 2005 1:25 pm
by srod
**Bug fixed.

A rather obscure bug was reported when selecting cells from code through a CellCallback function. It shouldn't affect many applications, but I've uploaded a new version anyhow.

Posted: Mon Feb 06, 2006 11:57 am
by dontmailme
Great gadget :D

Will you be adding sorting to your grid control ?

I've tried to use the PureLVSORT library but it's not working!

I'm trying to work it out, but it's proving difficult :lol:

Posted: Mon Feb 06, 2006 12:53 pm
by srod
I wasn't planning on adding any sorting capabilities as such.

Can't comment as to why the PureLVsort library doesn't work. Could be a clash with all the subclassing going on. In an egrid, both the underlying listicon and the header control are subclassed separately. This could be the cause of any problems as the PureLVSort library undoubtedly adds it's own layer of subclassing.

Posted: Mon Feb 06, 2006 1:28 pm
by dontmailme
Thanks, I got it working anyway :)

All I had to do was to enable header clicking in egrid.pb

Line 1544 in egrid_CreateGrid()

g=ListIconGadget(gadgetnum, 0, 0, width, height, "", 1, styleflags) ;|#LVS_NOSORTHEADER) Commented out!

Maybe this could be an option in the library when creating the grid for people who might want to also use PureLVSORT or any other header clicking code !

Great gadget !!!

Posted: Mon Feb 06, 2006 7:26 pm
by srod
I'd forgotten about that! :D

I'll bear this in mind when I get round to updating the code for PB4. Nice job.