Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataCombo Dropdown

Status
Not open for further replies.

SqueakinSweep

Programmer
Jun 20, 2002
945
GB
I have noticed that a Datacombo dropdown event occurs before any keydown/press, mouse down/up and click events.

How then do you determine whether a user has pressed ENTER in the combo, or mouse clicked the drop down part of the combo.

So far I have made all of my combos mainly keyboard driven, to an extent where they can type in the first few characters, press ENTER and be presented with a list of possible matches. However I have been asked to provide a facility whereby if a user clicks the dropdown button, that the list is populated with all possible list items.

So far I have tried delaying the populating of the items list until after the keypress and mouse events have fired, but it always as is the list presented is one mouse click behind what should be displayed. Were I able to detect in DropDown how I got into this event, I am sure I could resolve this problem.

Any ideas..workarounds or general thoughts welcomed.



Sweep
...if it works dont mess with it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top