<div>Hi, everyone,</div>
<div> </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> </div>
<div>int Controller::cbLBR() // <br>{<br>// global MouseMotion<br> <br> if (int MouseMotion == 0) {<br> eval picker Pick [iren GetEventPosition] 0 ren1<br> }<br> // Do the default things for the trackball style<br>
style OnLeftButtonUp <br> }</div>
<div> </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>