View Full Version : Macroscript icon change during runtime ?

02 February 2009, 08:42 AM
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 !

02 February 2009, 02:24 PM
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.

02 February 2009, 08:51 AM
Thanks for the reply !

But i don't this is a reasonable option...

02 February 2009, 02:43 PM
'fraid I can't see any other method, though :\

02 February 2009, 06:24 AM
I wonder if there is a faster way than colorman.reInitIcons(), maybe just reload one file ??
And then call updateToolbarButtons()

02 February 2009, 08:00 AM
'fraid not - that's what I tried at first, but it doesn't pick up on the changed icon file

02 February 2009, 09:22 AM
Hum, I'm afraid it's not possible then, too bad !
Thanks for the replies.

CGTalk Moderation
02 February 2009, 09:22 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.