[vtkusers] vtk bug? can't catch mouse button release events

wonae matt99 at hanmail.net
Tue Aug 4 20:43:49 EDT 2009


http://www.nabble.com/file/p24818856/testVTK.zip testVTK.zip 

I attached very simple dialog based vtk application.
Please, please download it and try.
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-bug--can%27t-catch-mouse-button-release-events-tp24818856p24818856.html
Sent from the VTK - Users mailing list archive at Nabble.com.




More information about the vtkusers mailing list