Hide scroll bar on Legend

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
lilo
Newbie
Newbie
Posts: 62
Joined: Wed Sep 07, 2011 12:00 am

Hide scroll bar on Legend

Post by lilo » Tue Sep 27, 2011 2:03 am

How is the Legend scroll bar made invisible. I cannot find the property.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Hide scroll bar on Legend

Post by Sandra » Tue Sep 27, 2011 11:05 am

Hello lilo,

I suggest use property Active to hide the scroll bar tool when you want, I think you can do something as next:

Code: Select all

        Steema.TeeChart.Styles.Points series1;
        Steema.TeeChart.Tools.LegendScrollBar LegendScrollBar;
        private void InitializeChart()
        {
                     LegendScrollBar = new Steema.TeeChart.Tools.LegendScrollBar(tChart1.Chart);
            series1 = new Points(tChart1.Chart);
            series1.FillSampleValues();
            checkBox1.Checked = true;
      }
  private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {
            LegendScrollBar.Active = checkBox1.Checked;
        }
Can you please, tell us if previous code works as you expected?

I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

lilo
Newbie
Newbie
Posts: 62
Joined: Wed Sep 07, 2011 12:00 am

Re: Hide scroll bar on Legend

Post by lilo » Tue Sep 27, 2011 11:44 am

Yes, it works

Thanks,

Post Reply