Is it possible to change the icon of a toolbar icon onclick?

Add-in Express™ Support Service
That's what is more important than anything else

Is it possible to change the icon of a toolbar icon onclick?
 
czetsuya




Posts: 44
Joined: 2011-05-01
Hi,

I added a COM button on the IE's default toolbar. The button is actually a flag, a boo-lean value that tells whether a certain event is to be executed or not.

Is it possible to change the icon of the button on click?

Tried adding this code but did not work:

public IEModule()
{
InitializeComponent();

ciActivate.OnClick += adxieCIActivate_OnClick;
}

void adxieCIActivate_OnClick(object sender, object htmlDoc)
{
ciActivate.ActiveIcon = "Icons.inactive";
}

Thanks,
czetsuya
[/CODE][CODE]
Posted 01 May, 2011 10:52:45 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Czetsuya,

No, it is not possible. For some reason this functionality has not been supported since IE7.
Moreover, the Active and Inactive icon states mean the same as Highlighted and Normal respectively. Please don't confuse them with Enabled and Disabled states.
Posted 02 May, 2011 05:29:55 Top
czetsuya




Posts: 44
Joined: 2011-05-01
Hi Sergey,

Ok got it.

Thanks,
czetsuya
Posted 02 May, 2011 05:57:49 Top