Page 1 of 1

Difference between AddChartLink and SetChartLink

Posted: Wed May 16, 2007 9:52 pm
by 9532498
What is the difference between TeePreviewPanel::SetChartLink and
TeePreviewPanel::AddChartLink?

I used AddChartLink to add 2 charts to my preview panel but when I run, I'm only able to resize the last chart that was added to the PreviewPanel.

Posted: Mon May 21, 2007 8:57 am
by Pep
Hi,
What is the difference between TeePreviewPanel::SetChartLink and
TeePreviewPanel::AddChartLink?
The SetChartLink method must be used to assign a specific Chart component to a TeePreviewPanel, for example :
TeePreviewPanel1.SetChartLink(Chart1.GetChartLink);

The AddChartLink method must be used if you want to add more than one Chart to the preview panel.
I used AddChartLink to add 2 charts to my preview panel but when I run, I'm only able to resize the last chart that was added to the PreviewPanel.
Yes, thsi is as designed, there's nt a property to select which one you want to resize, the only way to change between them is by re-adding them into the panel (just the one that will be resized, using the AddChartLink method).