Thanks Jothy. But I could not find any button like behavior in
vtkRectangularButtonSource . <div>Tracking the right click is not enough here, because I want to add set of options for the user.<br><br><div class="gmail_quote">On Mon, Feb 27, 2012 at 2:55 PM, Jothybasu Selvaraj <span dir="ltr"><<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">May be vtkRectangularButtonSource could do what you need.<br><pre><span><br>Jothy<br></span></pre><br><div class="gmail_quote">
<div><div class="h5">On Mon, Feb 27, 2012 at 8:15 AM, Gishara Indeewarie <span dir="ltr"><<a href="mailto:gish.777@gmail.com" target="_blank">gish.777@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div>Hi all,</div><div><br></div><div>Could someone give me an example for adding a menu item in vtk in c++?</div>
<div>
I want to allow the user to change the data in vtk render by pressing a button.</div><div>I thought of doing this by adding right click menu in vtk.</div>
<div>Thanks.</div>
<br></div></div>_______________________________________________<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>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div dir="ltr">Jothy<br></div><br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div></div><font color="#666666">Gish</font><br>
</div>