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...
Detect a click in a column header of a ListIconGadget.
Detect a click in a column header of a ListIconGadget.
PureBasic 6.20 beta 2 (x64) | Windows 10 Pro x64 | Intel(R) Core(TM) i7-8700 CPU @ 3.20Ghz 16 GB RAM, SSD 500 GB, PC locally assembled.
Come back to 6.11 LTS 64 bits because of an issue with #PB_ComboBox_UpperCase in ComboBoxGadget() (Oct. 10, 2024).
Come back to 6.11 LTS 64 bits because of an issue with #PB_ComboBox_UpperCase in ComboBoxGadget() (Oct. 10, 2024).
- langinagel
- Enthusiast
- Posts: 131
- Joined: Fri Jan 28, 2005 11:53 pm
- Location: Germany
- Contact:
Re: Detect a click in a column header of a ListIconGadget.
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.
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.
PureBasic 6.20 beta 2 (x64) | Windows 10 Pro x64 | Intel(R) Core(TM) i7-8700 CPU @ 3.20Ghz 16 GB RAM, SSD 500 GB, PC locally assembled.
Come back to 6.11 LTS 64 bits because of an issue with #PB_ComboBox_UpperCase in ComboBoxGadget() (Oct. 10, 2024).
Come back to 6.11 LTS 64 bits because of an issue with #PB_ComboBox_UpperCase in ComboBoxGadget() (Oct. 10, 2024).