Jump to content
Software FX Community

Help! How To Get The Value Of a Point From The Double-Click Event?


User (Legacy)

Recommended Posts

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

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

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

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

  • 3 weeks later...

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...