Home » U++ Library support » U++ Widgets - General questions or Mixed problems » howto force evaluation after <CR>
howto force evaluation after <CR> [message #10869] |
Wed, 01 August 2007 21:16  |
ebojd
Messages: 225 Registered: January 2007 Location: USA
|
Experienced Member |
|
|
I have come across a trivial problem while developing an interface to drive our LiDAR (think of it as a telescope with a 3000W laser pointer attached). When I tell the telescopic mount to go to a particular elevation or azimuth via an EditDoubleNotNull field, it calls the callback function for every character typed in instead after a <CR> or moving the mousse out of the focus area. What is the easiest way to force the evaluation after a <CR>?
Follows is the prototype code:
void telescope_ctl::btn_move_el_ctl()
{El = (double)~jog.jog_pos_el;}
telescope_ctl::telescope_ctl()
{
...
jog.jog_pos_el <<= THISBACK(btn_move_el_ctl);
...
}
Thanks,
EBo --
[Updated on: Wed, 01 August 2007 21:18] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Tue Apr 29 05:48:01 CEST 2025
Total time taken to generate the page: 0.00556 seconds
|