[vtkusers] Menu inside VTK Canvas
Romain LEGUAY
romain.leguay at gmail.com
Tue Jul 19 12:34:04 EDT 2011
Hi Sebastien,
Thanks for your answer.
I create an RCP Eclipse application so I have got many views and my VTK
Canevas is inside a SWT frame.
If I understand your answer, I just need to get the focus of the window,
capture the "Right Click Event" and display a Java/Swing component, don't I?
Romain
2011/7/19 Sebastien Jourdain <sebastien.jourdain at kitware.com>
> Hi Romain,
>
> you should be able to do it like any other Java/Swing component. The
> only thing is to set your popup menu to be lightweight.
>
> Seb
>
> On Tue, Jul 19, 2011 at 12:19 PM, Romain LEGUAY <romain.leguay at gmail.com>
> wrote:
> > Hello everyone,
> > I don't find any info on the implementation of a subMenu inside a VTK
> > Canvas. I would like when I right click inside the Vtk Canvas a subMenu
> with
> > just two actions (wireframe and solid).
> > Does anyone do something like this?
> > Thanks,
> > Romain LEGUAY
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK 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/20110719/42092d73/attachment.htm>
More information about the vtkusers
mailing list