Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enter Key does not cause control to lose focus
Message
De
24/10/1998 16:57:22
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00150185
Message ID:
00150222
Vues:
22
>Mike,
>
>SET CONFIRM is scoped to the data session. Do you have one form in the default DS and the other in a private DS?
>
>>I've spent about 2 hours on this and I am my wits end.
>>
>>On one particular form, whenever I press enter to exit any textbox, focus remains on the current control and the cursor jumps back to the first character. I have to press Tab to move to another field, or if I fill in the field completely I move on to the next field, which is standard CONFIRM OFF behavior.
>>
>>I'm using VFP 6.0
>>CONFIRM is OFF.
>>The textbox (just for testing) is from the base TEXTBOX class, and does not have any of is properties overwritten except for controlsource, which I set to ThisForm.Comment just for testing.
>>
>>I have other forms built on a virtually identical framework that do not manifest this behavior.
>>
>>I did some research before I posted this, saw the informaion about Default=.T. in pushbuttons and thought I had found my solution, but even though I do have several pushbuttons on the form, none of them have Default=.T.

It did turn out to be a Command button with Default=.T..

Even though I never set the commands default to .T., somehow VFP decided to do that for me any time the command button Refresh() code ran. I ended up adding the line This.Default=.F. as the last line of the button's refresh code. Over 2 hours of a beautiful Saturday down the drain......
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform