Page 1 of 1
GalleryPanel
Posted: Wed Aug 03, 2011 5:43 pm
by 15658604
Code: Select all
Private Sub galleryPanel1_OnChangeChart(ByVal sender As Object, ByVal e As System.EventArgs) Handles galleryPanel1.OnChangeChart
Try
2: Dim frm As ChartPane =...
3: Dim frmList As WorkplacePane = ....
Dim tx As Integer = frm.TChart1.Series.Count
4: Dim t = frmList.ChartListBox1.SelectedIndex
5: Dim s As Steema.TeeChart.Styles.Series = frmList.ChartListBox1.SelectedSeries
6: Steema.TeeChart.Styles.Series.ChangeType(frm.TChart1(t), galleryPanel1.SelectedChart(t).GetType())
Catch ex As Exception
End Sub
since the last two updates these code (and for galleryPanel1_OnSubSelected to) does not more work?
Do you have made changes ?
Thanks
Re: GalleryPanel
Posted: Thu Aug 04, 2011 10:58 am
by 10050769
Hello AGF,
I recommend that take a look in demo project, concretely in All features\Welcome !\Components\Gallery\Chart Gallery Panel, where you find an example of Chart Gallery Panel, that works fine, and I recommend that do something as example. If it doesn't works as you want for your application, please send us a simple project with your code, so we can try to help you.
Thanks,
Re: GalleryPanel
Posted: Sat Jan 14, 2012 1:38 pm
by 16060254
Dear Sandra,
from time to time i get these error messages
System.ArgumentOutOfRangeException: The Index was out of range. Must be non-negative and less than the collection.
Parametername: index
bei System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index)
bei Steema.TeeChart.Styles.SeriesCollection.get_Item(Int32 index)
bei Steema.TeeChart.TChart.get_Item(Int32 index)
bei .....GraphenPane.galleryPanel1_OnChangeChart(Object sender, EventArgs e) bei System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index)
bei Steema.TeeChart.Styles.SeriesCollection.get_Item(Int32 index)
bei Steema.TeeChart.TChart.get_Item(Int32 index)
bei .......GraphenPane.galleryPanel1_OnChangeChart(Object sender, EventArgs e)
How can i handel that?
Is it possible that the ValuesLists are not compare from one to an other seriestyp? How can i determine with are compatible and usable with the galleryPanel events?
Thanks
Re: GalleryPanel
Posted: Mon Jan 16, 2012 9:23 am
by 10050769
Hello Uta,
Can you send us a simple project where we can reproduce your problem here and try to find a solution for it?
Thanks,
Re: GalleryPanel
Posted: Tue Jan 17, 2012 5:30 am
by 16060254
Dear Sandra,
these is the code....
Code: Select all
Private Sub GalleryPanel3_OnChangeChart(ByVal sender As Object, ByVal e As System.EventArgs) Handles GalleryPanel3.OnChangeChart
Try
2: Dim frm As ChartPane = TryCast(CType(......AddinModule.CurrentInstance, ......AddinModule).TaskPanesCollectionItem1.TaskPaneInstance, ChartPane)
3: Dim frmList As WorkplacePane = TryCast(CType(......AddinModule.CurrentInstance, ......AddinModule).TaskPanesCollectionItem2.TaskPaneInstance, WorkplacePane)
Dim tx As Integer = frm.TChart1.Series.Count
4: Dim t = frmList.ChartListBox1.SelectedIndex
If t = -1 Then
CvO_ShowInfoBoxen("NoSerieSelected")
Exit Sub
Else
5: Dim s As Steema.TeeChart.Styles.Series = frm.TChart1.Series(t)
6: 'Steema.TeeChart.Styles.Series.ChangeType(frm.TChart1(frmList.ChartListBox1.SelectedIndex), GalleryPanel3.SelectedChart(frmList.ChartListBox1.SelectedIndex).GetType())
Steema.TeeChart.Styles.Series.ChangeType(s, GalleryPanel3.SelectedChart(t).GetType())
End If
Catch ex As Exception
System.Windows.Forms.MessageBox.Show(ex.ToString)
End Try
End Sub
Thanks
Re: GalleryPanel
Posted: Tue Jan 17, 2012 11:05 am
by 10050769
Hello Uta,
Thanks for your code. But I need you send us your project, because we can find exactly why in your project appears the exception. We try to use your code and we couldn't reproduce it, here. On the other hand, can you tell us which version of TeeChart.Net are you using?
Thanks,