Page 1 of 1
Navigation bar: how to set hilite of item to false?
Posted: Sat Jan 19, 2019 1:12 pm
by simon.schvartzman
Hi "helpers"...as I can see once an item of a Navigation Bar is selected it remains hilited (blue icon) until another one is clicked.
I would like it to behave differently in other words after performing whatever action is to be performed I would like to set its hilite property to false (black icon).
I have tried several alternatives with no success:
Code: Select all
set the hilite of item "CheckIn" of widget "ActionsBar" of card "Main" to false
Code: Select all
set the hilite of item 1 of widget "ActionsBar" of card "Main" to false
Code: Select all
set the hilite of widget "ActionsBar" of card "Main" to false
It has to be a way to do it, someone to the rescue?
Thanks
Re: Navigation bar: how to set hilite of item to false?
Posted: Sat Jan 19, 2019 1:50 pm
by Klaus
Hi Simon,
looks like this is not implemented, maybe you can get away with this trick somehow:
Code: Select all
...
set the hilitecolor of widget 1 to the forecolor of widget 1
...
?
Best
Klaus
Re: Navigation bar: how to set hilite of item to false?
Posted: Sat Jan 19, 2019 4:58 pm
by simon.schvartzman
Hi Klaus, it does the trick, many thanks.
Regards
Re: Navigation bar: how to set hilite of item to false?
Posted: Sat Jan 19, 2019 10:38 pm
by bwmilby
There is a PR to add this option:
https://github.com/livecode/livecode/pull/6404
You could always pull down the source for the widget and update it for your own use while waiting for it to get published.
The syntax will be:
Code: Select all
set the hilitedItem of widget to 0
Re: Navigation bar: how to set hilite of item to false?
Posted: Sun Jan 20, 2019 2:48 am
by simon.schvartzman
Thanks Brian for letting me know about this.
Regards
Re: Navigation bar: how to set hilite of item to false?
Posted: Sun Jan 20, 2019 10:31 am
by Klaus
This is good news!
Re: Navigation bar: how to set hilite of item to false?
Posted: Mon Sep 21, 2020 9:47 am
by marksmithhfx
simon.schvartzman wrote: ↑Sat Jan 19, 2019 1:12 pm
I would like it to behave differently in other words after performing whatever action is to be performed I would like to set its hilite property to false (black icon).
I am not sure if this is what you were looking for but setting the hiliteditemname to "item name" highlights an item, and setting it to empty sets them all back to grey.
Code: Select all
set the hiliteditemname of widget "Navigation Bar" to empty
Mark
Re: Navigation bar: how to set hilite of item to false?
Posted: Mon Sep 21, 2020 11:57 am
by simon.schvartzman
Thanks Mark, I've already accomplish my goal using Brian's suggestion above.
But I'll try your approach next time I need it.
Best!