hilitedbutton fn in Livecode 7 changed/bug?
Posted: Thu Dec 04, 2014 4:06 pm
It seems that the hilitedbutton property has changed in Livecode 7. When I ask for the hilitedbutton of a group when no button is hilited, I get a number 1 greater than the number of buttons. In previous versions of Livecode I would get 0.
This has wreaked some havoc on functions that check to see if the user has selected anything.
Was this a deliberate change? It seems like the old system (return 0 when nothing hilited) makes more sense. Now if I add another button to the group, I need to change the handler that checks for selections. Perhaps there is a better way to detect if a button is hilited in a group than using this property?
Thanks for any pointers.
Chuck
This has wreaked some havoc on functions that check to see if the user has selected anything.
Was this a deliberate change? It seems like the old system (return 0 when nothing hilited) makes more sense. Now if I add another button to the group, I need to change the handler that checks for selections. Perhaps there is a better way to detect if a button is hilited in a group than using this property?
Thanks for any pointers.
Chuck