Jump to content
Software FX Community

Capturing point label clicks

User (Legacy)

Recommended Posts

Is there any way to capture point label clicks and determine which point

that the clicked label is associated with?

I can get a click event when a label is clicked. However, PaintInfo and

HitTest calls on the coordinates I get from the click return -1. I can't

tell which label it is or which point (in my case, which pie slice) it's

associated with.

And I can't get coordinate information about point labels.

Is there another approach I could take?


Link to comment
Share on other sites

By doing that, I can get the coordinates in relation to the graph's axis,

but it doesn't seem that I can use that to reliably determine which label

was clicked on.

Let's say I have pie slices A, B, and C. Also, I've got labels 1, 2, and 3,

which point to pie slices A, B, and C, respectively.

If the users clicks on a point on label 2 which happens to be closer to pie

slice A than pie slice B, then how can any code I write reliably determine

that the user meant to select slice B when clicking on that part of label 2?

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message


> Use Axis.PixelToValue to determine the logical value in the axis that

> corresponds to the mouse position.


> --

> FP

> Software FX



Link to comment
Share on other sites


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

  • Create New...