Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to tell if clicked outside of form
Message
De
16/05/2003 14:41:46
 
 
À
16/05/2003 14:07:42
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00789340
Message ID:
00789394
Vues:
28
Mike,

Just tried to similate. Seems to work over here

Perhaps the easiest to do is to put a few statements in the Activate)( and Deactivate of both ListBoxForm and FakeForm and see what happens
=DoDefault()
acti screen
?program()
Or perhaps turn event tracking on and watch the output window.

There must be a way


>Gregory,
>
>I tried setting step on in the fakeform.DeActivate() event and it never gets there. The help says, "...Moving the focus to or from a form in another application doesn't trigger either [Activate or DeActivate] event."
>
>Perhaps I should have mentioned that the form containing the listbox has a ShowWindow property set to "In Top-Level" and is also a modal form.
>
>Fakeform.ShowWindow is set to "In Top-Level Form".
>
>So the real situation is that I have a main form (called say, Mainform) that can then do another form (called say, AnotherForm) that is shown in Mainform and AnotherForm does Fakeform that is also shown in Mainform.
>
>Does any of this shed some light on the situation? Do you think that my form settings is making VFP think that the forms are different applications?
>
>Mike
>
>>Mike,
>>
>>Doesn't the FakeForm.DeActivate() method fire when you click outside its boundary ?
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform