using Steema.TeeChart.Editors.AxisLabelsEditor

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Adrian
Newbie
Newbie
Posts: 5
Joined: Tue Dec 11, 2012 12:00 am

using Steema.TeeChart.Editors.AxisLabelsEditor

Post by Adrian » Fri May 17, 2013 4:04 am

Is it possible to call the Steema.TeeChart.Editors.AxisLabelsEditor editor passing an axis to it?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: using Steema.TeeChart.Editors.AxisLabelsEditor

Post by Narcís » Fri May 17, 2013 8:19 am

Hello Adrian,

Yes, you can do this:

Code: Select all

    private void button1_Click(object sender, EventArgs e)
    {
      Steema.TeeChart.Editors.AxisLabelsEditor labelsEditor = new Steema.TeeChart.Editors.AxisLabelsEditor(this.panel1);

      labelsEditor.SetAxis(tChart1.Axes.Bottom);
    }
Best Regards,
Narcís Calvet / 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

Adrian
Newbie
Newbie
Posts: 5
Joined: Tue Dec 11, 2012 12:00 am

Re: using Steema.TeeChart.Editors.AxisLabelsEditor

Post by Adrian » Fri Jul 05, 2013 1:49 am

Thanks Narcis,
I've only just got back to this one and your solution help me out... Initially it wouldn't show the editor, I suspect because it was behind other stuff on my form. If I used passed the tchart object into the AxisLabelsEditor constructor the editor appeared on my form. In the end I created a little form to hold the editor so that I could still see the chart as I make changes.

Code: Select all

  Private Sub RibbonGroup11_DialogLauncherClick(sender As Object, e As EventArgs) Handles RibbonGroup11.DialogLauncherClick
        Dim frm As Form = New Form
        Dim labelsEditor As Steema.TeeChart.Editors.AxisLabelsEditor = New Steema.TeeChart.Editors.AxisLabelsEditor(frm)
        labelsEditor.SetAxis(m_selectedAxis)
        frm.ShowDialog()
    End Sub

Post Reply