Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine what other control a control is losing focus t
Message
De
03/05/1999 23:16:33
 
 
À
03/05/1999 18:24:25
Chris Crachiolo
Blackmoor Associates Incorporated
New York City, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00214778
Message ID:
00214824
Vues:
19
Hi Christopher ---

Yup. There sure is. The following code will pop a WAIT WINDOW telling you where focus is headed (LostFocus code):
** Control.LostFocus 
FOR i = 1 to THIS.Parent.ControlCount
   IF THIS.Parent.Controls(i).TabIndex = THIS.TabIndex + 1
      WAIT WINDOW "Next will be "+THIS.Parent.Controls(i).Name
   ENDIF
ENDFOR
Adapt as you see fit :-)

>Is there any way to tell, at the time the Valid or LostFocus event fires for a control, what other control was clicked on (or tabbed to)?
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform