A plain moving on a surface

TeeChart for ActiveX, COM and ASP
Post Reply
Philip
Newbie
Newbie
Posts: 1
Joined: Fri Aug 25, 2006 12:00 am
Contact:

A plain moving on a surface

Post by Philip » Tue Jan 15, 2008 2:26 am

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.

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Jan 21, 2008 5:00 pm

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.

Western Power
Newbie
Newbie
Posts: 2
Joined: Wed Jan 23, 2008 12:00 am

Post by Western Power » Fri Jan 25, 2008 8:23 am

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.

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Jan 28, 2008 7:54 am

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

Post Reply