Page 1 of 1

Detect a click in a column header of a ListIconGadget.

Posted: Sun Mar 23, 2014 3:36 pm
by CONVERT
Hello,

It would be nice to be able to detect a click in a column header of a ListIconGadget, without using specific OS codes in a callback procedure.

Of course, it is always possible to build sophisticated code with compiler directives for different OS. But after, it is rather difficult to maintain it when the OS are changing (32 to 64 bits, etc.).

For the moment, I use Freak's code only for Windows. Shardik wrote a good code for several OS, but it seems having problems when there are several ListIconGadgets in the same Window.

On the other hand, I understand this feature is not implemented in native Purebasic. It does not seem so easy. And it does not seem to be claimed so much.

Thanks for reading...

Re: Detect a click in a column header of a ListIconGadget.

Posted: Fri Apr 04, 2014 3:06 pm
by langinagel
+1

Re: Detect a click in a column header of a ListIconGadget.

Posted: Fri Apr 04, 2014 3:40 pm
by CONVERT
Shardik did a good improvement of his excellent code. It works now even with several listicon gadgets in the same window, and in 64 bits:

http://www.purebasic.fr/english/viewtop ... et#p441175

May be an improvement: replacing the linkedlist by a map. As soon as I have time, I'll look for that.

But it would be better to have something native in Purebasic.