Page 1 of 1

How to set the highlighted

Posted: Wed Apr 10, 2019 9:59 am
by MeredithSmith
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

Re: How to set the highlighted

Posted: Wed Apr 10, 2019 10:13 am
by Klaus
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