Scott Jocobs wrote:
> I'm hoping for guidance with either a technical or design problem I am
> having with my application.  The application has a numeric 
> text field for
> which only a certain range of integer values will ever be appropriate.
> My current plan is to prevent the user from ever entering 
> invalid data.  
> 
> The field is already restricted to 3 characters and numerics only.
> By handling the keyDownEvent I am able to restrict the user's 
> input and
> keep the numbers within the appropriate ranges.  However, 
> when I use the
> keyboard dialog I never get the keyDownEvents, presumably since the
> dialog's event handler is getting them. Therefore the user can enter
> numeric data outside the valid ranges.
> 

We've come across this problem trying to dynamically update a list based on
the value of a text field.  Fine when the user uses Graffiti, but didn't
work when the user used the keyboard dialog.

We found that when the keyboard dialog was dismissed a 'fldChangedEvent' was
sent.  By handling this event in your form you should be able to stop the
user entering invalid data via the keyboard dialog.



Cheers
Russell
 
NOBLE(STAR
Russell K Bulmer
Mobile Computing Consultant
Switch: +44 (0) 20 7629 4888
Mobile: +44 (0) 797 082 3259
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
http://noblestar.com <http://noblestar.com/> 
 
 

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to