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?

post-2233-13922398134996_thumb.jpg

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

news:8g2OIr0aEHA.3080@webserver3.softwarefx.com...

> 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

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.

×
×
  • Create New...