Page 1 of 1

How to make Custom Objects in TeeChart?

Posted: Thu Aug 23, 2007 4:09 pm
by 9343900
Hi Everybody!

I'm using V7 with delphi and I'm needing to do objects in the TeeChart.

What i'm trying to do is :
When the user do a diagonal line, plot some other horizontal lines automaticly...

and when drag the line, all the other lines need to move too...

Is there a way to do that?

Thxs

Posted: Fri Aug 24, 2007 8:01 am
by narcis
Hi report,

Are you planning to do this using TDrawLineTool? If so you could use TeeChart's OnAfterDraw event to custom draw on TeeChart's canvas the other lines or also use tool's events. You'll find more information on custom drawing at Tutorial 13 - Custom drawing on the Chart Panel. You'll find the tutorials at TeeChart's program group.

You may also be interested on how to drag a full series as shown here. This is a .NET example but the same applies to TeeChart VCL.

If you have problems implementing that please let us know and also give us some more details about what are you exactly trying to achieve.

Posted: Fri Aug 24, 2007 11:52 am
by 9343900
Thxs!
It is working perfectly!

lol

Muito Obrigado! (Thank you very much!)