Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving on to the next object
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00368774
Message ID:
00368778
Vues:
21
Hi Valerie,

>I'm building a class which is a container of other objects. I capture the keystrokes ('cause I want to do specific things). When the user hits the TAB key, I want to move on to the next object on the form (one that can actually receive focus). How the heck do I do that? I tried .Parent.Objects(This.TabIndex+1).SetFocus, but if the next object is something like a shape that doesn't have a SetFocus event, I get an error.

When you capture the Keystrokes (in the KeyPress Event, right?) do a nodefault, except when you get a Tab. Then, let VFP handle it.

HTH,
Bill Armbrecht
VFP MCP
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform