<div>Hi, everyone,</div>
<div>&nbsp;</div>
<div>I am new to Tcl programming, a task require me to write a mouse selection function. I have the code in tcl, and need to translate to C++. Finished part of the work, but still not sure about the callbacl function, the code is in tcl:
</div>
<div>&nbsp;</div>
<div>int Controller::cbLBR() // <br>{<br>// global MouseMotion<br>&nbsp; <br>&nbsp; if (int MouseMotion == 0) {<br>&nbsp;&nbsp;&nbsp; eval picker Pick [iren GetEventPosition] 0 ren1<br>&nbsp; }<br>&nbsp; // Do the default things for the trackball style<br>
&nbsp; style OnLeftButtonUp&nbsp;<br>&nbsp; }</div>
<div>&nbsp;</div>
<div>Really dunt know how to convert : <strong>eval picker Pick [iren GetEventPosition] 0 ren1</strong></div>
<div>to C++. . .</div>
<div>Anyone can help? any suggestions?</div>