[Lazarus] TLMMouseEvent now lacks "state"

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Thu Oct 27 16:12:41 CEST 2011


2011/10/27 zeljko <zeljko at holobit.net>:
> So if original win msg have State , why it's removed and why it's changed to
> Button now ?

This idea was from the original patch sender ...

Maybe it was not good after all. But on one side it is good, because
now LCL widgetsets are forced to use ShiftStateToKeys, and that will
kill any non standard ShiftStates. ssCaps is declared in the RTL, so
we can't undeclare it, so someone could try to send it to the LCL. Now
we force its removal, because there is no way to fit it into the
Button.

Part of the fix was exactly killing this unreliable events. In Windows
you would get ssCaps when caps lock=on, not when it is pressed, which
was totally wrong. In other platforms you could receive part or none
of them. It was a mess.

-- 
Felipe Monteiro de Carvalho




More information about the Lazarus mailing list