Detecting a dopped down combo
2006-05May-23
VFP triggers the DropDown event when the dropdown part of a combobox is opened. Unfortuantely, there's no correlating DropUp event of any sort. So, you have to rely on other events that aretriggered in this case. The most important one is the When event. To distiguish a user moving the focus into the combobox and the user clicking on the dropdown button, you can use a flag that youset to .T. in the DropDown event. If When is triggered, and the flag is .T., then the user closedthe dropdown area. Set the flag to .F. in this case.