
Index
From: Christopher Ireland
Subject: Re: getting the screen coordinates
Date: Thu, 6 May 2004 11:16:47 +0200
Newsgroup: steema.public.teechart6.activex
Hi Nina,
> How can I get the screen/xy coordinates of each series.
You can try something similar to:
Private Sub Form_Load()
With TChart1
.AddSeries scBar
.AddSeries scBar
.Series(0).asBar.MultiBar = mbNone
.Series(1).asBar.MultiBar = mbNone
.Series(0).FillSampleValues 20
.Series(1).FillSampleValues 20
.Walls.Bottom.Transparency = 100
.Aspect.Orthogonal = False
.Aspect.Elevation = 45
End With
End Sub
Private Sub TChart1_OnAfterDraw()
With TChart1
.Canvas.MoveTo3D .Series(1).CalcXPos(4) + .Series(1).asBar.BarWidth / 2,
..Series(1).CalcYPos(4) +
..Series(1).CalcYSizeValue(.Series(1).YValues.Value(4)),
..Series(1).asBar.BarWidth / 2
.Canvas.LineTo3D 0, 0, 0
End With
End Sub
--
Best Regards,
Christopher Ireland
http://support.steema.com
"Important note: If you are a TeeChart registered customer, please post your
support questions at Steema's Support monitored Forums for customers:
http://support.steema.com for a prompter reply."