Page 1 of 1

using Steema.TeeChart.Editors.AxisLabelsEditor

Posted: Fri May 17, 2013 4:04 am
by 15664365
Is it possible to call the Steema.TeeChart.Editors.AxisLabelsEditor editor passing an axis to it?

Re: using Steema.TeeChart.Editors.AxisLabelsEditor

Posted: Fri May 17, 2013 8:19 am
by narcis
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);
    }

Re: using Steema.TeeChart.Editors.AxisLabelsEditor

Posted: Fri Jul 05, 2013 1:49 am
by 15664365
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