[Lazarus] TMouseButton

Kjow antispammoni at gmail.com
Wed Apr 7 16:35:11 CEST 2010


2010/4/7 Kjow <antispammoni at gmail.com>:
> Error: Incompatible types: got "Empty Set" expected "TMouseButton"

Whops, I've mistyped, it works!
But how to read the values from a function?

e.g.

function ButtonPress(Button: TMouseButtons): string;
begin
  case Button of
    ...: Result:= 'you pressed' ;
  end;
end;

regards,
Kjow




More information about the Lazarus mailing list