Felipe Monteiro de Carvalho wrote:
> On 10/1/06, Marc Weustink <[EMAIL PROTECTED]> wrote:
>> > It seams to me that we are also emulating bugs in VCL =)
>>
>> Help me... what was the delphi bug here ?
>
> 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 ?)
> This is inconsistent. OnClick should be generated by .... mouse clicks.
nope, that where you go wrong. A mouse is yust another input device. A
click can also be generated by the keyboard.
If you want a mouse evetn, use mousebuttondown/up
> In fact, this way it´s possible to generate a OnClick event without
> even having a mouse installed!!
>
> 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.
Marc
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives