SqueakinSweep
Programmer
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
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