Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
{TAB} key with Toolbar/ Field Input
Message
 
 
To
20/03/2003 09:34:06
John Vlahos
V I Software Solutions Design
Mississauga, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00768040
Message ID:
00768046
Views:
18
THis is a know issue with toolbars because the control on the form does not lose focus when a button is clicked on a toolbar. In your Save code, you could try:
IF PEMSTATUS(_screen.ActiveForm.ActiveControl, 'Value', 5)
   _screen.ActiveForm.ActiveControl.Value = _screen.ActiveForm.ActiveControl.Value
ENDIF
>I use a "Table Maintenance toolbar" for adding and editing records in a table. My toolbar has a "Save" button for performing the record validation and the table update.
>
>When in Add or Edit Mode and entering data on a specific field, (i.e, nPrice N 8 D 2), I am forced to either fill up the text field to it's maximum length (ie. 99999.99) which moves my cursor to the next field to input or press the {TAB} key to move to the next field.
>
>My problem is that if I press the "Save" button on my toolbar, before doing the above (ie. entering only 99) my validation routing is not aware of the change on that specific field.
>
>If I did not use a toolbar and just put a command button on my form to perform the save I do not need to press the {TAB} key or fill up the entire field; any change is detected.
>
>How can I make my toolbar bahave the same?
>
>Thanks for any suggestion.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform