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 13:29:30
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
How to tell if clicked outside of form
Divers
Thread ID:
00789340
Message ID:
00789340
Vues:
72
Hello All,

I have a VFP7 SP1 form that contains a listbox. I allow any item in the list to be edited by displaying a second form (lets call it 'fakeform') over top of the listitem to be modified. Fakeform is exactly the same size (height and width) of the listitem to be edited. It has no border or titlebar. It is modal and thus far it works fine with the keyboard. Hitting Enter or Escape closes fakeform.

My problem is that I would like to have fakeform disappear when the user clicks outside of its boundary. IOW, it would have the same behavior as a dropdown list where if you click anywhere outside of the dropdownlist, the dropdownlist disappears.


Your thoughts and suggestions are appreciated.

TIA

Mike.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform