Why not change the key focus to something else when the user exit via the menu ? As Regis Lee mentioned, creating a modal dialog window (just for this control) with an Ok button (and possibly a cancel button) is a possible alternative.
PJM --- David Ferster <[EMAIL PROTECTED]> wrote: > In a vi, the user clicks in a numerical control and > enters a number. > He forgets to hit Enter or click away, so key focus > is still on the > control and the value is not available at the > terminal yet. Now the > user exits the vi via a menu selection, thinking he > has properly > entered the value. How do I get the new value of the > control that the > user thinks he entered but didn't update? > > I can programmatically pull key focus off the > control, and then read > it again through a local variable, but what a > nuisance. I am sure > there must be a better way to protect against this > error. > > David > -- > David Ferster > Actimetrics, Inc. > 1621 Elmwood Ave., Wilmette, IL 60091 > http://www.actimetrics.com > 847/922-2643 Phone > 847/589-8103 FAX > > > > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com