Skid / Mark,
I see that ListBoxes are now emitting EVENT_GADGETSELECT events for clicks that don't have any list items, or deselecting list items.
Whilst this is all good and usefull (and NOT a bug, hence posting here), this has caused major breakage to my code today because the previous documented behaviour was to only emit a EVENT_GADGETSELECT (upgraded from EVENT_GADGETACTION a few weeks ago) when something was selected. All of a sudden, I'm getting ListIndex's of -1, causing array access code to go splat. You might say "good programming practice means that I should validate all data before acting upon it", and you would be right. But, I've coded according to published specifications and now my code is breaking because the specs changed without my knowledge.
I hate to ask it, but can we get advanced notification of changes which change the basic functionality of gadgets? At least that way, I can assess my code and know in advance some pain is coming, or even plan around the changes and set some time aside to make the fixes BEFORE the change hits.
Thanks,
Neil
I see that ListBoxes are now emitting EVENT_GADGETSELECT events for clicks that don't have any list items, or deselecting list items.
Whilst this is all good and usefull (and NOT a bug, hence posting here), this has caused major breakage to my code today because the previous documented behaviour was to only emit a EVENT_GADGETSELECT (upgraded from EVENT_GADGETACTION a few weeks ago) when something was selected. All of a sudden, I'm getting ListIndex's of -1, causing array access code to go splat. You might say "good programming practice means that I should validate all data before acting upon it", and you would be right. But, I've coded according to published specifications and now my code is breaking because the specs changed without my knowledge.
I hate to ask it, but can we get advanced notification of changes which change the basic functionality of gadgets? At least that way, I can assess my code and know in advance some pain is coming, or even plan around the changes and set some time aside to make the fixes BEFORE the change hits.
Thanks,
Neil