<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
I just upgrade to VTK 5.4 and I realised that I can't catch the <i>RightButtonReleaseEvent
</i>but I can catch <i>RightButtonPressEvent</i>. What happen? As
far as I can remember, that was working with version 5.0<i><br>
</i><br>
<br>
<i> mpIren = vtkWin32RenderWindowInteractor::New();<br>
mpSwitchStyle = vtkInteractorStyleSwitch ::New();<br>
mpIren->SetInteractorStyle(mpSwitchStyle);<br>
<br>
//Not Working ( </i><i>MouseRightClickReleaseEvent is never called)</i><i><br>
vtkCallbackCommand * lpMRightClickReleaseCommand =
vtkCallbackCommand::New();<br>
lpMRightClickReleaseCommand->SetCallback(MouseRightClickReleaseEvent);<br>
mpIren->AddObserver(vtkCommand::RightButtonReleaseEvent,lpMRightClickReleaseCommand);<br>
<br>
</i><i>// Working</i><br>
<i> vtkCallbackCommand * lpMRightClickPressCommand =
vtkCallbackCommand::New();<br>
lpMRightClickPressCommand->SetCallback(MouseRightClickPressEvent);<br>
mpIren->AddObserver(vtkCommand::RightButtonPressEvent,lpMRightClickPressCommand);<br>
<br>
</i> thanks for your help<br>
<br>
Vincent<br>
</body>
</html>