<div dir="ltr">Hello!<div><br></div><div style>I guess you are using C# and ActiViz.NET, if so, the &#39;<span style="font-family:arial,sans-serif;font-size:13px">vtkObject&#39; should be a type of a </span>vtkRenderWindowInteractor, then you example should work.</div>
<div style><br></div><div style>hth</div><div style><br></div><div style>mirko</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 4, 2013 at 8:50 AM, louiskoo <span dir="ltr">&lt;<a href="mailto:419655660@qq.com" target="_blank">419655660@qq.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for your help.<br>
<br>
How can I add click event? And  below is my code:<br>
    button.LeftButtonPressEvt += new<br>
vtkObject.vtkObjectEventHandler(button_LeftButtonPressEvt) ;<br>
However,it dosen&#39;t work.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/vtkButtonSource-vtkRectangularButtonSource-vtkEllipticalButtonSource-tp5721752p5721754.html" target="_blank">http://vtk.1045678.n5.nabble.com/vtkButtonSource-vtkRectangularButtonSource-vtkEllipticalButtonSource-tp5721752p5721754.html</a><br>

<div class="HOEnZb"><div class="h5">Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Real programmers don&#39;t document; if it was<br>hard to write, it should be hard to understand.
</div></div>