Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Category:
Forms & Form designer
Title:
How to tell if clicked outside of form
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only