Have you looked at:<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "> - vtkControlPointsItem::</span><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">MouseDoubleClickEvent ? </span></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, sans-serif">It doesn't work for you if you reimplement vtkChartXY::MouseDoubleClickEvent?</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, sans-serif">j.<br></font><br><div class="gmail_quote">On Thu, Nov 3, 2011 at 2:26 PM, Natalie <span dir="ltr"><<a href="mailto:natis261270@yahoo.com">natis261270@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Julien,<br>
<br>
thanks a lot for your explanation. For sure, I will need specific point<br>
selection in the future. But to start with, I just want a right mouse<br>
double click (if possible, if not a single click might be OK) giving a<br>
specific action. As you said there are multiple ways of doing, which one<br>
would you think is best? I think a double click is not really detected yet,<br>
right?<br>
<br>
1. I tried with AddObserver, but there was no action.<br>
2. I subclassed vtkContextInteractorStyle to change the action and I<br>
subcalssed vtkContextView to change the constructor as I said in my last<br>
post. It compiles fine, but I get a runtime crash in the line<br>
view->GetInteractor()->Start();<br>
Here view is the subclassed vtkContextView. It crashes in the<br>
"vtkContextInteractorStyle::ProcessSceneEvents" method coming from<br>
"vtkWin32RenderWindowInteractor::Start()" in the message loop.<br>
So far I did not find the cause.<br>
What is wrong???<br>
<br>
Thanks a lot for your help!<br>
Natalie<br>
<font color="#888888"><br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/vtkChartXY-How-to-catch-mouse-click-events-user-interaction-VTK-5-8-0-tp4943170p4961905.html" target="_blank">http://vtk.1045678.n5.nabble.com/vtkChartXY-How-to-catch-mouse-click-events-user-interaction-VTK-5-8-0-tp4943170p4961905.html</a><br>
</font><div><div></div><div class="h5">Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br></div>