navbar pre hiliteChanged

Mike Kerner MikeKerner at
Thu May 13 15:43:56 EDT 2021

memo for the next person who discovers this thread:
1. as has been previously discussed in other threads, the navigation bar
receives the hiliteChanged message even if the hilite does not change
(which happens when the user taps on the currently hilited segment)
2. in my testing in 9.6.x, if you set/reset the hilitedItem or the
hilitedItemName early enough in the handler, most of the time that will
take effect before the screen redraws, so the user will not see the blink
from the original tap. it's not perfect, but it might be good enough.

On Thu, May 13, 2021 at 12:47 PM Mike Kerner <MikeKerner at>

> How do you handle the situation where a user taps on the navBar but you
> want to intercept and cancel it?
> Example: User clicks on the navBar to switch cards, but there is an error
> on the existing card, so the navigation and the hilite changing should be
> stopped.

On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."

More information about the use-livecode mailing list