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.

> 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.

--
Felipe Monteiro de Carvalho

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to