Thanks David. I am not sure, but I think the focus issue holds for the Motif/VTK environment.<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp; Luca<br><br><div><span class="gmail_quote">On 3/29/07, <b class="gmail_sendername">David Cole</b> &lt;<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
For the Win32/Windows case, make sure you intercept WM_SETFOCUS in<br>your parent window and call SetFocus on the VTK child HWND. Otherwise,<br>the VTK child window will never get keyboard focus.....<br><br>I&#39;m not sure what the equivalent Motif thing to do is for you X-windows users...
<br><br>HTH,<br>David<br><br><br>On 3/29/07, Daniel Lüken &lt;<a href="mailto:d.lueken@stud.fh-dortmund.de">d.lueken@stud.fh-dortmund.de</a>&gt; wrote:<br>&gt; Hello,<br>&gt;<br>&gt; I&#39;m currently getting started using the VTK and ran into a problem. The
<br>&gt; vtkRenderWindowInteractor doesn&#39;t process key events when I use the vtk in a<br>&gt; parent window using renWin-&gt;SetParentID(hwnd). Everything works fine when I<br>&gt; let the VTK create its own window. Mouse events are correctly processed in
<br>&gt; both cases.<br>&gt; I&#39;m using VTK 5 in a C++ application.<br>&gt;<br>&gt; Thanks in advance.<br>&gt;<br>&gt; _______________________________________________<br>&gt; This is the private VTK discussion list.<br>
&gt; Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers">
http://www.vtk.org/mailman/listinfo/vtkusers</a><br>&gt;<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">
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">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote></div><br>