Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set focus on a form
Message
De
04/06/2002 10:01:06
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00664140
Message ID:
00664442
Vues:
24
>Thanks! that works fine on my edit, but not on my insert on my toolbar?
>
>Wonder what i'm doing in my insert thats interfering?

Well, it would help if you said what you are doing.

Basically, calling a setfocus() on anything on a form triggers a couple of events; if the form is not visible, it may trigger form.show, and it will for sure trigger form.activate if the form is not active already. You can watch this in the debugger, but it will show you only those events which have some code; event logging may show more.

I've seen a form which was hidden, and some framework code called during the destroy() had a setfocus() in it, and I saw the form come visible again, and its .activate ran as well.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform