Page 1 of 1

The relation between Chart3DPercent and numbers of series ?

Posted: Sun Dec 07, 2008 7:25 am
by 8574101
Hello,
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]

Posted: Sun Dec 07, 2008 7:31 am
by 8574101
I am sorry ,I think I should post this at VCL / CLX.

Posted: Wed Dec 10, 2008 11:01 am
by narcis
Hi wwp3321,

No problem. I moved the thread to the VCL forum. Find my reply here:

http://www.teechart.net/support/viewtop ... 6229#36229