Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to tell if clicked outside of form
Message
From
16/05/2003 13:29:30
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
How to tell if clicked outside of form
Miscellaneous
Thread ID:
00789340
Message ID:
00789340
Views:
75
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.
Next
Reply
Map
View

Click here to load this message in the networking platform