Started by donnieworld ·
2017-12-01 19:03 UTC ·
3 replies · SMF topic #2545
donnieworld
2017-12-01 19:03 UTC
How can I display a value in a textbox that updates as the cursor moves in the drawing? Specifically I want the user to select a polyline and I want to show the distance in a textbox from the beginning as the cursor moves.
fred_tomke
2017-12-01 19:47 UTC
Hi, (dcl-control-settext (rtos (distance ptStart ptEnd) 2 2)) should do the trick.
It will only work with one of the modeless forms.
The hardest work should be to get noticed about mousecursor moves. I believe you should study the available Lisp-reactors or open a question in any Lisp forum.
Regards, Fred
Peter2
2017-12-04 13:09 UTC
author=Fred Tomke link=topic=2545.msg12630#msg12630 date=1512157640 wrote:
...The hardest work should be to get noticed about mousecursor moves...
What's about "grread"?
fred_tomke
2017-12-04 14:59 UTC
Hi, Peter, yes, I thought about it, but I wasn't sure whether grread would work while gripediting is active.
Regards, Fred