Axis, Legend and series editors
Posted: Fri Oct 14, 2005 8:44 am
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
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
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.
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
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
Ta.