User (Legacy) Posted March 12, 2003 Report Share Posted March 12, 2003 I'm trying with VB.NET to get the value or the index of a point that is double-clicked from the Double-Click Event. In the help file, it describes the property Point as Gets the Point index for the point of the mouse event. -1 if no point was selected. But, the point's properties doesn'y contain any reference to the index of the clicked one. Private Overloads Sub ChartTotal_DoubleClick(ByVal sender As Object, ByVal e As SoftwareFX.ChartFX.Lite.MouseEventArgsX) Handles ChartTotal.DoubleClick If e.HitType = HitType.Point Then Dim myPoint As Point 'here i need to get the value of the clicked point End If End Sub Thanks! Link to comment Share on other sites More sharing options...
User (Legacy) Posted March 12, 2003 Author Report Share Posted March 12, 2003 I'm trying with VB.NET to get the value or the index of a point that is double-clicked from the Double-Click Event. In the help file, it describes the property Point as Gets the Point index for the point of the mouse event. -1 if no point was selected. But, the point's properties doesn'y contain any reference to the index of the clicked one. Private Overloads Sub ChartTotal_DoubleClick(ByVal sender As Object, ByVal e As SoftwareFX.ChartFX.Lite.MouseEventArgsX) Handles ChartTotal.DoubleClick If e.HitType = HitType.Point Then Dim myPoint As Point 'here i need to get the value of the clicked point End If End Sub Thanks! Link to comment Share on other sites More sharing options...
Software FX Posted March 13, 2003 Report Share Posted March 13, 2003 Use the Point and Series property exposed by the MouseEventArgsX parameter as follows (C# code) if (e.HitType == HitType.Point) { MessageBox.Show("You clicked on Series "+e.Series.ToString()+" , Point "+e.Point.ToString()); double dValue = chart1.Value[e.Series,e.Point]; MessageBox.Show("Value is "+dValue.ToString()); } -- Regards, JC Software FX Support "Green Age" <greenage@mail.com> wrote in message news:jaaBIMV6CHA.3448@webserver1.softwarefx.com... > I'm trying with VB.NET to get the value or the index of a point that is > double-clicked from the Double-Click Event. > In the help file, it describes the property Point as Gets the Point index > for the point of the mouse event. -1 if no point was selected. > But, the point's properties doesn'y contain any reference to the index of > the clicked one. > > Private Overloads Sub ChartTotal_DoubleClick(ByVal sender As Object, ByVal e > As SoftwareFX.ChartFX.Lite.MouseEventArgsX) Handles ChartTotal.DoubleClick > > If e.HitType = HitType.Point Then > > Dim myPoint As Point > > 'here i need to get the value of the clicked point > > End If > > End Sub > > > > Thanks! > > Link to comment Share on other sites More sharing options...
Software FX Posted March 13, 2003 Report Share Posted March 13, 2003 Use the Point and Series property exposed by the MouseEventArgsX parameter as follows (C# code) if (e.HitType == HitType.Point) { MessageBox.Show("You clicked on Series "+e.Series.ToString()+" , Point "+e.Point.ToString()); double dValue = chart1.Value[e.Series,e.Point]; MessageBox.Show("Value is "+dValue.ToString()); } -- Regards, JC Software FX Support "Green Age" <greenage@mail.com> wrote in message news:jaaBIMV6CHA.3448@webserver1.softwarefx.com... > I'm trying with VB.NET to get the value or the index of a point that is > double-clicked from the Double-Click Event. > In the help file, it describes the property Point as Gets the Point index > for the point of the mouse event. -1 if no point was selected. > But, the point's properties doesn'y contain any reference to the index of > the clicked one. > > Private Overloads Sub ChartTotal_DoubleClick(ByVal sender As Object, ByVal e > As SoftwareFX.ChartFX.Lite.MouseEventArgsX) Handles ChartTotal.DoubleClick > > If e.HitType = HitType.Point Then > > Dim myPoint As Point > > 'here i need to get the value of the clicked point > > End If > > End Sub > > > > Thanks! > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted April 1, 2003 Author Report Share Posted April 1, 2003 Now, is there a way to get the point from a click on the X-axis label? Thanks in advance, boB Taylor MCSD, MCDBA,MCSE "Software FX Support" <support@softwarefx.com> wrote in message news:kv3ywIX6CHA.3148@webserver1.softwarefx.com... > Use the Point and Series property exposed by the MouseEventArgsX parameter > as follows (C# code) > > if (e.HitType == HitType.Point) { > MessageBox.Show("You clicked on Series "+e.Series.ToString()+" , Point > "+e.Point.ToString()); > double dValue = chart1.Value[e.Series,e.Point]; > MessageBox.Show("Value is "+dValue.ToString()); > } > > -- > Regards, > > JC > Software FX Support > "Green Age" <greenage@mail.com> wrote in message > news:jaaBIMV6CHA.3448@webserver1.softwarefx.com... > > I'm trying with VB.NET to get the value or the index of a point that is > > double-clicked from the Double-Click Event. > > In the help file, it describes the property Point as Gets the Point index > > for the point of the mouse event. -1 if no point was selected. > > But, the point's properties doesn'y contain any reference to the index of > > the clicked one. > > > > Private Overloads Sub ChartTotal_DoubleClick(ByVal sender As Object, ByVal > e > > As SoftwareFX.ChartFX.Lite.MouseEventArgsX) Handles ChartTotal.DoubleClick > > > > If e.HitType = HitType.Point Then > > > > Dim myPoint As Point > > > > 'here i need to get the value of the clicked point > > > > End If > > > > End Sub > > > > > > > > Thanks! > > > > > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted April 1, 2003 Author Report Share Posted April 1, 2003 Now, is there a way to get the point from a click on the X-axis label? Thanks in advance, boB Taylor MCSD, MCDBA,MCSE "Software FX Support" <support@softwarefx.com> wrote in message news:kv3ywIX6CHA.3148@webserver1.softwarefx.com... > Use the Point and Series property exposed by the MouseEventArgsX parameter > as follows (C# code) > > if (e.HitType == HitType.Point) { > MessageBox.Show("You clicked on Series "+e.Series.ToString()+" , Point > "+e.Point.ToString()); > double dValue = chart1.Value[e.Series,e.Point]; > MessageBox.Show("Value is "+dValue.ToString()); > } > > -- > Regards, > > JC > Software FX Support > "Green Age" <greenage@mail.com> wrote in message > news:jaaBIMV6CHA.3448@webserver1.softwarefx.com... > > I'm trying with VB.NET to get the value or the index of a point that is > > double-clicked from the Double-Click Event. > > In the help file, it describes the property Point as Gets the Point index > > for the point of the mouse event. -1 if no point was selected. > > But, the point's properties doesn'y contain any reference to the index of > > the clicked one. > > > > Private Overloads Sub ChartTotal_DoubleClick(ByVal sender As Object, ByVal > e > > As SoftwareFX.ChartFX.Lite.MouseEventArgsX) Handles ChartTotal.DoubleClick > > > > If e.HitType = HitType.Point Then > > > > Dim myPoint As Point > > > > 'here i need to get the value of the clicked point > > > > End If > > > > End Sub > > > > > > > > Thanks! > > > > > > Link to comment Share on other sites More sharing options...
Software FX Posted April 2, 2003 Report Share Posted April 2, 2003 Sorry, no way to do this in Chart FX Lite. This can be done in Chart FX .NET as you will get notified with the axis object that was hit, then by converting the pixel coordinate into a logical value you can determine the closest label. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Software FX Posted April 2, 2003 Report Share Posted April 2, 2003 Sorry, no way to do this in Chart FX Lite. This can be done in Chart FX .NET as you will get notified with the axis object that was hit, then by converting the pixel coordinate into a logical value you can determine the closest label. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.