how to execute function in Bar from Toolbar

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

how to execute function in Bar from Toolbar
 
ali alsaedi




Posts: 7
Joined: 2010-11-16
Hi

Q1 : how to execute function exist in Bar from Toolbar ?

Q2 : how to check if the Bar is visible from Toolbar ?


thanks
Posted 05 Dec, 2010 05:52:08 Top
Sergey Grischenko


Add-in Express team


Posts: 7202
Joined: 2004-07-05
Hi Ali.

1. if (this.Module.Bars[<index>].BarObj != null)
{
MyIEBar1 bar = this.Module.Bars[0].BarObj as MyIEBar1;
bar.MyFunc();
}
2.
if (this.Module.Bars[<index>].BarObj != null)
{
MyIEBar1 bar = this.Module.Bars[0].BarObj as MyIEBar1;
if (bar.Visible)
{
}
}
Posted 06 Dec, 2010 07:19:32 Top