Difference between AddChartLink and SetChartLink

TeeChart for ActiveX, COM and ASP
Post Reply
nbp
Newbie
Newbie
Posts: 83
Joined: Mon Sep 18, 2006 12:00 am

Difference between AddChartLink and SetChartLink

Post by nbp » Wed May 16, 2007 9:52 pm

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.

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon May 21, 2007 8:57 am

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).

Post Reply