I m using ChartController for my charts and i wanted to hide some buttons of it e.g. 3D, Zoom.
Help me find out how this can be achieved
How to hide buttons on ChartController
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: How to hide buttons on ChartController
Quant,
One way to achieve this which enables you to see what is going on is this:
One way to achieve this which enables you to see what is going on is this:
Code: Select all
ToolBarButton[] buttons = commander.Buttons;
List<ToolBarButton> newButtons = new List<ToolBarButton>();
foreach (ToolBarButton button in buttons)
{
if (!((string)button.Tag).Contains("Zoom") && !((string)button.Tag).Contains("3D"))
{
newButtons.Add(button);
}
}
commander.Buttons = newButtons.ToArray();
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |