Page 1 of 1

hilitedbutton fn in Livecode 7 changed/bug?

Posted: Thu Dec 04, 2014 4:06 pm
by cwkalish
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

Re: hilitedbutton fn in Livecode 7 changed/bug?

Posted: Thu Dec 04, 2014 4:32 pm
by Klaus
Hi Chuck,

just tested with LC 6.7 RC3 and works as exspected.
Did you try with LC 7.01 RC3, which came out yesterday?


Best

Klaus

Re: hilitedbutton fn in Livecode 7 changed/bug?

Posted: Thu Dec 04, 2014 5:23 pm
by cwkalish
RIght, it works fine with 6.7 (returns 0), but not with 7
People working on my project had noticed the problem, I think they downloaded an advanced copy of 7?
I downloaded 7 last night and found the problem.

Re: hilitedbutton fn in Livecode 7 changed/bug?

Posted: Thu Dec 04, 2014 5:54 pm
by Klaus
Hi Chuck,

please consider to bug report this: http://quality.runrev.com
Thanks!


Best

Klaus

Re: hilitedbutton fn in Livecode 7 changed/bug?

Posted: Sun Dec 07, 2014 4:19 am
by cwkalish
I tried to submit a bug, but couldn't. I keep getting the

A value must be set for the 'Desktop OS' field.

error, but there seems to be no place to indicate this on the bug form.

I'll submit a bug report on the bug report.'