<div dir="ltr">Yes, I am calling RenderWindowInteractor-&gt;SetInteractorStyle(myStyle).&nbsp; Here&#39;s the snippet:<br><br>InteractorStyle = (INTERACTOR_STYLE *)INTERACTOR_STYLE::New();// actual return type is vtkInteractorStyleTrackballCamera<br>
SetInteractorStyle(InteractorStyle);<br><br>called within the constructor of my RenderWindowInteractor (it&#39;s actually derived from wxVTKRenderWindowInteractor).<br><br>I did solve the scroll wheel problem by adding a SetFocus() to the top of the OnButtonUp function in the wxVTKRenderWindowInteractor.<br>
<br>Thanks,<br><br>Kerry<br><br><div class="gmail_quote">On Sun, Aug 3, 2008 at 9:57 PM, Karthik Krishnan <span dir="ltr">&lt;<a href="mailto:karthik.krishnan@kitware.com">karthik.krishnan@kitware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">Kerry Loux wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello all,<br>
<br>
I&#39;ve got two questions today: &nbsp;First, I&#39;m having a difficult time figuring out why my mouse scroll events are not being captured. &nbsp;When I start my app, everything works fine, but if I select another control, then select the render window interactor again, I loose my scroll events. &nbsp;Any ideas? &nbsp;It&#39;s probably worth mentioning that I&#39;m using a wxVTKRenderWindowInteractor (MSW, wx 2.8.7, and vtk 5.0.4).<br>

<br>
Second, I derived a class from vtkInteractorStyleTrackballCamera and I overloaded some of the event handling functions (OnButtonDown, etc.). &nbsp;My overloaded functions are not being called. &nbsp;When I step through the app. in debug, it just goes right to the vtk functions. &nbsp;Am I missing something? &nbsp;Is it more complicated than just overloading the function?<br>

</blockquote></div></div>
Silly question, but just to check: You are setting an instance of your derived interactor style on the RenderWindowInteractor being used as in:<br>
 &nbsp; &nbsp;renderWindow-&gt;GetInteractor()-&gt;SetInteractorStyle(myStyle);<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Thanks,<br>
<br>
Kerry<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><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>
 &nbsp;<br>
</blockquote>
<br>
</blockquote></div><br></div>