BCB6 and TeeChart Pro v7.05
How to draw e.g. a horizontal line on the bottom wall, at a position matching a certain zValue?
Thanks in advance,
Wiebe
How to draw lines on 3D walls?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Wiebe,
You can custom draw on TChart's canvas using its OnAfterDraw event and do something like the following code:
You can custom draw on TChart's canvas using its OnAfterDraw event and do something like the following code:
Code: Select all
void __fastcall TForm1::Chart1AfterDraw(TObject *Sender)
{
int index=Series1->ZValues->Locate(15);
Chart1->Canvas->MoveTo3D(Chart1->Axes->Bottom->IStartPos, Chart1->Axes->Bottom->PosAxis, Series1->CalcZPos(index));
Chart1->Canvas->LineTo3D(Chart1->Axes->Bottom->IEndPos, Chart1->Axes->Bottom->PosAxis, Series1->CalcZPos(index));
}
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Hi Wiebe,
yes, these properties has not been explained in the TeeChart Help files. We'll add them for the next releases.
In case you still having problems painting on the Chart please do not hesitate to let us know and we'll try to help you..
yes, these properties has not been explained in the TeeChart Help files. We'll add them for the next releases.
In case you still having problems painting on the Chart please do not hesitate to let us know and we'll try to help you..
Pep Jorge
http://support.steema.com
http://support.steema.com