Page 1 of 1

ListIconGadget header click

Posted: Sun Oct 21, 2007 1:28 pm
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.

Posted: Sun Oct 21, 2007 1:34 pm
by Joakim Christiansen
Indeed. Then it's easier to convert to Linux for us too.

Posted: Sun Oct 21, 2007 2:09 pm
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: