Ed Leafe wrote:
On Nov 29, 2005, at 6:36 PM, Paul McNett wrote:
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.
Have you double-checked all the demo code to make sure that it all
works with this change? I'm not sure what, if anything, had to be
changed the first time we switched the behavior.
You know what Ed? I believe that it wasn't dListBox that we changed before, but
dListControl. Reviewing that code just now, I see that dListControl separates
selection from activation, and remembering back I think it was this that was
backwards before.
As it stands now, here's what the 3 list controls (dListBox, dDropdownList, and
dListControl) do WRT Hit:
dListBox: Hit on an item being activated. Nothing on an item being selected but
not activated.
dDropdownList: Hit on an item being picked, by first dropping down the list,
then optionally picking an item, then closing the list.
dListControl: Hit on an item being activated, which in this context is a step
beyond an item being selected. To activate, you first select, then press enter
or double-click. Additionally, you can deselect by pressing space or the mouse
button again.
In summary, all these controls are for different things, and so Hit has slightly
different meanings depending on the control you are talking about. Honestly,
this brings up something that at some point we should address: the seeming lack
of need for some of the controls we've wrapped:
+ Why would one ever want to use dListBox when dListControl is just as easy, and
more flexible and capable?
+ Why do we need dBox and dLine, when borders can be put around panels and when
we can draw on any object we want?
+ Why dDropdownList, when dCombobox can do the same thing?
+ Can't we consolidate dBitmapButton, dToggleButton, and dButton?
But I'm going off on a tangent here. Sorry.
--
Paul McNett
http://paulmcnett.com
http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev