ListIconGadget header click

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

ListIconGadget header click

Post by PB »

I've seen (and am using) Freak's tip here...

http://www.purebasic.fr/english/viewtopic.php?t=6203

...but it would be nice if GetGadgetState() could return a value to indicate if
a ListIconGadget header was clicked/selected. I know -1 means nothing is
selected, so perhaps -2 or something? Would be nice to avoid a callback.
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

Indeed. Then it's easier to convert to Linux for us too.
I like logic, hence I dislike humans but love computers.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

Or to be more logical: since the first item selected is 0, then -1 should be for
the header itself, and -2 for nothing. But that would break existing code. :twisted:
Post Reply