Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
ebojd is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: there is no fontpusher class (just checking)
Next Topic: How to use droplist and switch
Goto Forum:
  


Current Time: Thu May 02 21:54:36 CEST 2024

Total time taken to generate the page: 0.03928 seconds