[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vtkusers
Subject:    [vtkusers] Re: Enabling use a ContextMenu with vtk and MFC
From:       "Mark Gooding" <mark.gooding () gmail ! com>
Date:       2006-02-28 10:12:30
Message-ID: b20f1cd50602280212t72089603n15de3dc60374029b () mail ! gmail ! com
[Download RAW message or body]

Thanks for all the replies. In the end, I have subclassed the
vtkInteractorStyle (Trackball). In doing so I can check whether the
mouse moves between the button press and release. If the mouse moves
in the y-axis I perform the standard interactor action, but if it
stays in the same place I call the OnContextMenu using the SendMessage
command.

Cheers,

Mark

On 2/27/06, Mark Gooding <mark.gooding@gmail.com> wrote:
> A while ago I emailed about trying to set up a ContextMenu when the
.....
> vtkWindowInteractor.
>
> To solve this problem I think I should be subclassing
....
> clicks directly to the CView class.
>
> Does this sound like a sensible approach? Or is there a better/more
....
> least knowing that I heading in the right direction!

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic