The relation between Chart3DPercent and numbers of series ?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
wwp3321
Newbie
Newbie
Posts: 60
Joined: Wed Jul 02, 2003 4:00 am

The relation between Chart3DPercent and numbers of series ?

Post by wwp3321 » Sun Dec 07, 2008 7:25 am

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]

wwp3321
Newbie
Newbie
Posts: 60
Joined: Wed Jul 02, 2003 4:00 am

Post by wwp3321 » Sun Dec 07, 2008 7:31 am

I am sorry ,I think I should post this at VCL / CLX.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Dec 10, 2008 11:01 am

Hi wwp3321,

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

http://www.teechart.net/support/viewtop ... 6229#36229
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply