From: Tzeng, N. H. <Nig...@jh...> - 2007-03-27 13:58:40
|
Michael, =20 I don't know if I'm doing it the right way but I created a new = interaction that handled the mouse up event and called a passed in = callback. I pass back the x,y location of the click (like in the = tooltip) and also the x,y values 3 pixels up and left and 3 pixels down = and right to have a range to check. My markers are 6 pixels in size so = I think that should be good enough. =20 Given I have some 100,000 points in my plots I hope someone has a more = elegant way than doing a search. I briefly thought of making the = markers some kind of button or component to handle mouse events but = quickly rejected that thought given the number of points I have. =20 I can send a code snippet later when I'm on my dev box. =20 Nigel ________________________________ From: npl...@li... on behalf of Michael = Banzon Sent: Tue 3/27/2007 3:45 AM To: npl...@li... Subject: [Nplot-devel] Select points Hi, I'm currently developing an application, using NPlot. I have a graph containing 3 PointPlot's, and need the capture event where a point has been clicked. The best scenario would be to get the exact coordinates of the point that was clicked. The second best would be to get the coordinates of the click. Does anyone have any input on how to solve this problem?? Thanks in advance... -- Michael Banzon Developer Mobile: +45 3124 2455 Mail: mi...@ab... Web: http://www.abc-tool.com/ intellitory ApS Njalsgade 88, 2. sal DK-2300 K=C3=B8benhavn S Denmark -------------------------------------------------------------------------= Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share = your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV _______________________________________________ Nplot-devel mailing list Npl...@li... https://lists.sourceforge.net/lists/listinfo/nplot-devel |