User (Legacy) Posted May 21, 2001 Report Share Posted May 21, 2001 > How can I limit the Moving of the Point only to the Y axis? There is a ChangeValue event that occurs as the user is moving the point: Private Sub ChartFX1_ChangeValue(ByVal dValue As Double, ByVal nSerie As Integer, ByVal nPoint As Long, nRes As Integer) If ChartFX1.CurrentAxis = AXIS_X Then ' X axis is changing nRes = 1 - AdjustTime ' AdjustTime is a checkbox, so: nRes = 1 to not allow x change Else ' Y axis is changing nRes = 1 - AdjustAmplitude End If End Sub "Chris Mancini" <chrismancini@iname.com> wrote in message news:VCvBAAk3AHA.1856@sfxserver.softwarefx.com... > Hi I am using ChartFX Client Server Version 4.0.21.0 with VB. I have a > question regarding the X axis using a Curve Graph. > > Example: > > Point 1: (5, 29) > Point 2: (20, 419) > Point 3: (35, 705) > Point 4: (55, 504) > Point 5: (75, 22) > > First Question: > > How can I show Only the above mentioned X values. As you can see the step > value between the X points is not consistent. > > Second Question: > > How can I limit the Moving of the Point only to the Y axis? Since I am > adding X values to the Graph using: > > .OpenDataEx COD_VALUES, nSeriesIndex + 1, objPoints.Count > .OpenDataEx COD_XVALUES, nSeriesIndex + 1, objPoints.Count > > nIndex = 0 > For Each objPoint In objPoints > .Series(nSeriesIndex).Yvalue(nIndex) = objPoint.y > .Series(nSeriesIndex).Xvalue(nIndex) = objPoint.x > nIndex = nIndex + 1 > Next objPoint > > .CloseData COD_XVALUES > .CloseData COD_VALUES > > > When the user selects a point to move, the graph allows the point to move on > either axis. I would like to prevent the point from moving along the X > axis. > > Is the only way to do this is handle the LButtonDown Event and then handle > the MouseMoving Event not allowing the mouse to travel on the X axis? > > Thanks in Advance > Chris Mancini > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.