[vtkusers] vtkRenderWindowInteractor does not process key events
Luca Pallozzi Lavorante
lplavorante at gmail.com
Thu Mar 29 13:57:44 EDT 2007
Thanks David. I am not sure, but I think the focus issue holds for the
Motif/VTK environment.
Luca
On 3/29/07, David Cole <david.cole at kitware.com> wrote:
>
> For the Win32/Windows case, make sure you intercept WM_SETFOCUS in
> your parent window and call SetFocus on the VTK child HWND. Otherwise,
> the VTK child window will never get keyboard focus.....
>
> I'm not sure what the equivalent Motif thing to do is for you X-windows
> users...
>
> HTH,
> David
>
>
> On 3/29/07, Daniel Lüken <d.lueken at stud.fh-dortmund.de> wrote:
> > Hello,
> >
> > I'm currently getting started using the VTK and ran into a problem. The
> > vtkRenderWindowInteractor doesn't process key events when I use the vtk
> in a
> > parent window using renWin->SetParentID(hwnd). Everything works fine
> when I
> > let the VTK create its own window. Mouse events are correctly processed
> in
> > both cases.
> > I'm using VTK 5 in a C++ application.
> >
> > Thanks in advance.
> >
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070329/bde65ea8/attachment.htm>
More information about the vtkusers
mailing list