Page 1 of 1

does bubble contains point?

Posted: Wed Feb 04, 2009 2:40 pm
by 9642362
Hi,
i have an e.x and e.y coordinates from a mouse up event. how can i make sure the bubble contains this point? (mouse up was in bubble range)

Posted: Wed Feb 04, 2009 2:53 pm
by yeray
Hi idan,

I think that clicked method is what you are looking for:

Code: Select all

        void tChart1_MouseUp(object sender, MouseEventArgs e)
        {
            Text = bubble1.Clicked(e.X,e.Y) != -1 ? "Bubble!" : "";
        }