Jump to content
Software FX Community

Re: X Axis Question


User (Legacy)
 Share

Recommended Posts

> 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

>

>

post-2107-13922392276233_thumb.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...