Notifications
Clear all

[Closed] Macroscript icon change during runtime ?

Hi all,

I was wondering if it was possible to change the icon used by a macroscript depending on its state. Imagine for example a play button that changes to a pause button and vice versa.

Thanks !

6 Replies

not directly – what you can do is overwrite the original icon files (*_24i.bmp, *_16i.bmp) and then call “colorman.reInitIcons()”.

Note: That call is fairly slow and the entire user interface will flash.

Thanks for the reply !

But i don’t this is a reasonable option…

‘fraid I can’t see any other method, though :\

I wonder if there is a faster way than colorman.reInitIcons(), maybe just reload one file ??
And then call updateToolbarButtons()

‘fraid not – that’s what I tried at first, but it doesn’t pick up on the changed icon file

Hum, I’m afraid it’s not possible then, too bad !
Thanks for the replies.