Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Jump to the next control on taborder
Message
De
20/05/2003 06:57:46
 
 
À
19/05/2003 16:26:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00790134
Message ID:
00790354
Vues:
17
We all know that we cannot change focus from a Valid event, but is that entirely true? Well not really, in fact since DOS VFP we could control the cursor by returning a numerical value in the valid event. Just place the following in the button Valid event:
if not ValueReturned
  return 1
else
  return 0
endif
Using this technique you can precisely move the cursor based on relative tab order, for instance to go to a specific control you can
if some condition
  return newcontrol.tabindex - this.tabindex
else
  return 0  && Stay right here
endif
Glenn

>No, programatically, I Call a form from a button , if not value is returned I need to jump to the next control, how can do this? The TabIndex in managed dinamycally.. Sorry for my bad english I speak spanish
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform