Ed Leafe wrote:
On Nov 29, 2005, at 5:36 PM, Paul McNett wrote:
Let me clarify my (current) thinking. I know I may be contradicting
some earlier discussions (maybe not though, I'm too lazy to look).
The Hit event should be the event that fires whenever the default
action for the given control occurs. When a button is pushed, when
text is typed in a textcontrol, when a timer fires, and... when a
list item is selected.
Well, this is exactly the opposite of what we discussed a while
back. A dropdown list fires selection events as you scroll through the
dropped list, and a Hit event when the list closes, indicating a
selection. A list box fires selection events as you scroll through the
choices, and a Hit event when you either press Enter or double- click on
any choice.
The problem is, that isn't what I observe: EVT_LISTBOX fires when an item is
selected, either by clicking on an item, or by scrolling through with the arrows
and then pressing the spacebar. The little focus selector doesn't fire any
events, only when the item is actually selected (background color turns) does
the event fire. That is what Hit is mapped to now.
The enter key, even with the binding, didn't cause anything to happen.
I really think this is working the way it should now. Pie on my face, because I
do remember arguing the opposite view before. But if you compare dListBox with
dDropdownList, they feel similar now WRT Hit.
--
Paul McNett
http://paulmcnett.com
http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev