I have 10 series on Chart1(3D),and 10 items in a CheckListBox to
represent the 10 series.
When items of the CheckListBox being checked,I handled the event of CheckListBox1ClickCheck event as following.
Code: Select all
void __fastcall TfWavePower::CheckListBox1ClickCheck(TObject *Sender)
{
int n3DPercnt = Chart1->Chart3DPercent;
//Item Checked
if( CheckListBox1->Checked( CheckListBox1->ItemIndex ) )
Chart->Series[i]->ParentChart = Chart1;
else
Chart->Series[i]->ParentChart = NULL;
Chart1->Chart3DPercent = n3DPercnt;
}
But when I unchecked the items ,the width of Chart1 became to smaller and smaller.
Please take a look at the following pictrues.
[img]
http://img1.freep.cn/p.aspx?u=v20_img1_ ... 103843.jpg
[/img]
[img]
http://img1.freep.cn/p.aspx?u=v20_img1_ ... 103843.jpg
[/img]