Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Focus / Activate
Message
 
 
À
22/01/2004 21:57:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00869739
Message ID:
00869938
Vues:
27
David,

You probably need some selective nodefault and explicit dodefault or form:: calls in the Deactivate to get this to work. What is launching the other form? If you'd do it from a command button on the form itself you'd avoid the problem because the button would have focus.

>I wish to change the object focus when a form is deactivated. Setfocus() doesn't achieve this, because it refocuses the whole form.
>The reason is to avoid a grid (or more precisely an object in the grid) having focus when another form fires up. Grids having focus can cause the alias() to change unexepectedly while running code external to the form.
>
>In addition, is there any way of finding the current object of an inactive form? VFP must know this internally because it clearly "remembers" the active object when activating / deactivating forms.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform