Page 1 of 1

A plain moving on a surface

Posted: Tue Jan 15, 2008 2:26 am
by 9532328
I'm using TeeChart AX 7.x.

Image

I want to move green plain by mouse dragging.

How can I do this?

Am I utilize 2 series on a plot?

Does it support Annotations like ChartFX?

Thank you.

Posted: Mon Jan 21, 2008 5:00 pm
by Pep
Hi Philip,
I'm afraid this is not going to be possible to do it with the existing version. The most proper way to accomplish it would be by using a Grid Band tool, but the problem is that for the moment it does not accept depth axis (just bottom, right, left and top).
I've added this as a wish to be considered for further releases.

About the annotations, yes, the TeeChart Pro v7 contains a tool (Annotation tool) which allows you to add annotations into the Chart.
The latest TeeChart Pro v8 also allows to add 3D annotations.

Posted: Fri Jan 25, 2008 8:23 am
by 15048063
Hello Philip and Pep.

I don't see why you can't do this? There are a few solutions, but I think that using a Grid Band tool wouldn't be optimal.

The Color (Colour) Line tool does this almost exactly, and works in 3D. In 3D, however, it doesn't fill in the face of the plane, it just draws the outline of the plane. It also supports dragging natively.

You may be able to use a custom series and implement click and drag features into your software, but it would be difficult.

Posted: Mon Jan 28, 2008 7:54 am
by Pep
Hi,

yes, that's the problem, as you said the most similar tool to do this would be the ColorLine tool but it cannto be filled.
Another way would be by drawing directly on the Canvas by using the RectangleZ method, but it also does not allow to apply a transparecy, just a solid color or different style :

Code: Select all

Private Sub TChart1_OnMouseMove(ByVal Shift As TeeChart.EShiftState, ByVal X As Long, ByVal Y As Long)
TChart1.Repaint
TChart1.Canvas.Brush.Style = bsBDiagonal
TChart1.Canvas.RectangleZ X, TChart1.Series(0).CalcYPos(TChart1.Series(0).YValues.Maximum), _
100, 0, 10
End Sub