Thanks David. I am not sure, but I think the focus issue holds for the Motif/VTK environment.<br>
<br>
Luca<br><br><div><span class="gmail_quote">On 3/29/07, <b class="gmail_sendername">David Cole</b> <<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>> 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'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 <<a href="mailto:d.lueken@stud.fh-dortmund.de">d.lueken@stud.fh-dortmund.de</a>> wrote:<br>> Hello,<br>><br>> I'm currently getting started using the VTK and ran into a problem. The
<br>> vtkRenderWindowInteractor doesn't process key events when I use the vtk in a<br>> parent window using renWin->SetParentID(hwnd). Everything works fine when I<br>> let the VTK create its own window. Mouse events are correctly processed in
<br>> both cases.<br>> I'm using VTK 5 in a C++ application.<br>><br>> Thanks in advance.<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">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>><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>