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
MeredithSmith
Posts: 1
Joined: Wed Apr 10, 2019 9:55 am

How to set the highlighted

Post by MeredithSmith » Wed Apr 10, 2019 9:59 am

Hi

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.

Mer

Klaus
Posts: 14196
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: How to set the highlighted

Post by Klaus » Wed Apr 10, 2019 10:13 am

Hi Mer,

welcome to the forum!

Code: Select all

...
set the hilitedItemIcons of widget "Your header bar here" to tYourIconNameHere
...
Do this:
1. Open the dictionary -> Menu: Help: Dictionary (API)
2. On the left side scroll down until you see -> header bar (or any other object/widget)
3. Click that line and you will see all avialable handlers and
properties for that kind of widget listed on the right side.


Best

Klaus

Post Reply