Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check box with focus
Message
De
26/05/1999 13:02:49
 
 
À
10/05/1999 14:58:58
Tim Godwin
Information Technology Group
Tustin, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00216838
Message ID:
00223028
Vues:
36
>Ok, here's a good one, I just figured out what mystery has been happening to my screens, and now I can't figure out how to stop it.
>
>It seems that when a check box or option button has the focus and you hit the enter key, a piece of code from another screen in the screen set gets executed. So far, always a piece of code that moves the current screen 600 pix off the screen which is how I switch visible screens.
>
>I've only been able to make this happen with my main application that uses a foundation read. It doesn't happen with small test programs.
>
>Any help would be appreciated, I'd hate to tell my users "just don't do that" with the enter key.

Tim,

How code in another form in the formset gets executed is a mystery to me, but to work around the problem, how about capturing the enter keystroke in the control's keypress method and converting it to a TAB. That way the user would not see any difference, and any strange effects would be bypassed.

regards.
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform