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 21:22:02
 
 
À
24/10/1998 14:28:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00150185
Message ID:
00150245
Vues:
15
>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.
>
>Can anyone help me out?

This is proper Windows behavior..almost...you should have a command button with Default=.T. Under WIndows, Enter means "I'm done with this form...execute the default behavior".
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform