Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>In order to keep the tabbing on a form to go from one textbox to another, rather than the page tab, I'm using the KeyPress event of the last textbox to capture the TAB key and set the focus to the first textbox. The focus hits the correct box, but only briefly and then continues onto the second textbox in the TabOrder. It effectively is skipping the textbox I'm directing the focus to. I ran a trace on the code, but it's hard to know exactly what is going on as the pageframe refreshes (on it's own) right after the SetFocus is called. Is there another way to do this? There isn't a TabStop property for the page or I might have tried to set that to false. Thanks!
>>
>>Regards, Renoir
>
>Renoir,
>Did you include a 'NODEFAULT' there before setfocus ?
>Cetin
Cetin,
I did now -- and it works... I looked it up and it seems to tell Foxpro not to run the default code for that method. How does putting that before the SetFocus call allow the focus to go to the textbox instead of the page? Thanks!
Renoir
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement