Felipe Monteiro de Carvalho wrote:
On 10/1/06, Marc Weustink <[EMAIL PROTECTED]> wrote:
> When a user clicks on the ListBox once, holds down the button pushed
> and changes the selected item, many OnClick events are generated. The
> same if he uses the keyboard to change the selected item.
Yes, that are keyclicks (or not ?)
But if you consider that a keyboard can also generate clicks, then we
should have a OnClick event when a key is pressed on other controls as
well, to be consistent.
Depending on the key (not just anykay), maybe yes.
For instance a enter on a button generates a click.
> And thus, is inconsistent behavior.
Nope, a click is when something is pressed. For instance a button. You
can ckicl it by mose, the spacebar, the enterkey ot its accelerator. All
generate a onclick.
In the first example I have (hold the mouse button, and drag around
the listbox to change selection), you will have several OnClick events
while only one button was pressed.
I tested this on delphi and you get the click when you release the
button. If we don't do that -> bug.
For every change of selection I would expect a selctionchange event in
our case.
Marc
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives