How to set the highlighted

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
johnken
Posts: 1
Joined: Tue Feb 25, 2020 10:08 am

How to set the highlighted

Post by johnken » Tue Feb 25, 2020 10:13 am

Can anyone advise how to set the highlighted of an icon in the Header bar widget please?

The blog post shows how to change the name or icon but I can't see from the API docs or the post how to get at the highlighted property of an icon in the header bar widget.

I am trying to use a header bar icon button to show/hide editing buttons on the card and I want the icon button to be a toggle switch. I could do it with a text button but that's not the style of the app.

Many thanks for any assistance provided.

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: How to set the highlighted

Post by [-hh] » Thu Feb 27, 2020 8:31 pm

Setting the hilitedItem is possible in the navbar widget, not in the headerbar widget.
In the navbar widget hiliting changes the color and the property hilitedItem.
In the headerbar widget hiliting changes the icon/iconText (use property hilitedItemIcons), the icons/iconTexts use always the hiliteColor.
shiftLock happens

Post Reply