[Lazarus] TMouseButton
Kjow
antispammoni at gmail.com
Wed Apr 7 16:20:06 CEST 2010
2010/4/7 Vincent Snijders <vsnijders at vodafonevast.nl>:
> What about:
>
> type
> TMouseButtons = set of TMouseButton; // if it doesn't exist yet
>
> var
> MouseButtonPressed: TMouseButtons;
>
>
>> MouseButtonPressed:=MouseButtonPressed + Button; //OnMouseDown
>
> Your mbNone becomes:
>> MouseButtonPressed:=[];
>
> Vincent
Thank you Vincent,
I tried, but
MouseButtonPressed:=[];
returns:
Error: Incompatible types: got "Empty Set" expected "TMouseButton"
and I don't know how to add Button to MouseButtonPressed...
Thanks,
Kjow
More information about the Lazarus
mailing list