I have a listbox on my form and I set it to invisible. When a particular
button on the form is pressed, I make the listbox visible and allow the
user to select from it. When the selection occurs, the listbox is made
invisible again.
What I want to do is automatically make the listbox invisible if it is
visible and the user clicks the mouse outside the listbox boundaries.
Seems like this should be easy, but other than trapping all mouseclicks
and then comparing location to the boundaries of the listbox and whether
it is visible, I can't find a method for this.
The behavior I am trying to emulate is built into popup lists in PalmOS.
Anyone have any clever ideas, or something I am missing?
Thanks
Terry Brown
Stickman Software
http://stickmansoftware.com