<!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&nbsp; I can't catch the <i>RightButtonReleaseEvent&nbsp;
</i>but I can catch <i>RightButtonPressEvent</i>.&nbsp; What happen?&nbsp; As
far as I can remember, that was working with version 5.0<i><br>
</i><br>
<br>
&nbsp;<i>&nbsp;&nbsp; mpIren = vtkWin32RenderWindowInteractor::New();<br>
&nbsp;&nbsp;&nbsp; mpSwitchStyle = vtkInteractorStyleSwitch ::New();<br>
&nbsp;&nbsp;&nbsp; mpIren-&gt;SetInteractorStyle(mpSwitchStyle);<br>
<br>
//Not Working ( </i><i>MouseRightClickReleaseEvent is never called)</i><i><br>
&nbsp;&nbsp;&nbsp; vtkCallbackCommand * lpMRightClickReleaseCommand =
vtkCallbackCommand::New();<br>
&nbsp;&nbsp;&nbsp;
lpMRightClickReleaseCommand-&gt;SetCallback(MouseRightClickReleaseEvent);<br>
&nbsp;&nbsp;
&nbsp;mpIren-&gt;AddObserver(vtkCommand::RightButtonReleaseEvent,lpMRightClickReleaseCommand);<br>
<br>
</i><i>// Working</i><br>
<i>&nbsp;&nbsp; &nbsp;vtkCallbackCommand * lpMRightClickPressCommand =
vtkCallbackCommand::New();<br>
&nbsp;&nbsp;&nbsp;
lpMRightClickPressCommand-&gt;SetCallback(MouseRightClickPressEvent);<br>
&nbsp;&nbsp;
&nbsp;mpIren-&gt;AddObserver(vtkCommand::RightButtonPressEvent,lpMRightClickPressCommand);<br>
<br>
</i>&nbsp;thanks for your help<br>
<br>
Vincent<br>
</body>
</html>