[vtk-developers] vtk 5.4.2 bug? can't catch mouse button release events
wonae
matt99 at hanmail.net
Thu Jul 30 05:50:02 EDT 2009
http://www.nabble.com/file/p24735381/testVTK.zip testVTK.zip
I attached very simple dialog based vtk application.
Why this simple application doesn't work properly with vtk 5.4.2?
Please try that application. :(
I added observer :
m_pvtkMFCWindow->GetInteractor()->AddObserver(vtkCommand::RightButtonReleaseEvent,
m_pvtkCallback);
And it's callback function is also simple :
class vtkCallback : public vtkCommand
{
public:
static vtkCallback *New()
{ return new vtkCallback; }
vtkCallback::vtkCallback() {};
vtkCallback::~vtkCallback() {};
virtual void Execute(vtkObject *caller, unsigned long, void*)
{
AfxMessageBox("callback");
}
};
But when I click right mouse button, message box is not shown.
I could see the message when I double-click my right mouse button.
Also it works when I press left button, and press right button, now release
left button and finally release right button.
All release events of left, middle, right button don't work, and this
application works well with vtk 5.0.4.
What's different? What did I do wrong?
Please give me some hints.
Thank you in advance.
--
View this message in context: http://www.nabble.com/vtk-5.4.2-bug--can%27t-catch-mouse-button-release-events-tp24735381p24735381.html
Sent from the VTK - Dev mailing list archive at Nabble.com.
More information about the vtk-developers
mailing list