Page 1 of 1

Axis, Legend and series editors

Posted: Fri Oct 14, 2005 8:44 am
by 9637403
There seems to be some inconsistency with these editors. I use the click events to pop the editors. For Series I use the following code

Code: Select all

Private Sub tc_ClickSeries(ByVal sender As System.Object, ByVal s As Steema.TeeChart.Styles.Series, ByVal valueIndex As Integer, ByVal e As System.Windows.Forms.MouseEventArgs) Handles tc.ClickSeries
      Try
        Dim edt As New Steema.TeeChart.Editors.SeriesEditor
         edt.ShowModal(s)
      Catch ex As Exception
         m_control.Log.LogMsg(ex.Message, True, Constants.LOG_MESSAGE_TYPES.Error)
      End Try
   End Sub
This works fine and the editor is nice and compact. However; for the Axis and Legend editors there appears not to be a SHOWMODAL method so I have to use the following

Code: Select all

 Private Sub tc_ClickAxis(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles tc.ClickAxis
      Try
         Dim axis As Steema.TeeChart.Axis = sender
         Dim edt As New Steema.TeeChart.Editors.AxisEditor(axis, Me)
         Steema.TeeChart.Editors.EditorUtils.ShowFormModal(edt)
      Catch ex As Exception
         m_control.Log.LogMsg(ex.Message, True, Constants.LOG_MESSAGE_TYPES.Error)
      End Try
   End Sub
This also works correctly providing the AXIS editor however this editor seems to take on the size of the parent window and can't be resized. Can this be considered for correction in a not to distant release.

Ta.

Posted: Fri Oct 14, 2005 9:34 am
by narcis
Hi Adrian,

Yes, I've been able to reproduce it and have added this issue (TF02011010) to our defect list to be fixed for future releases.