Ex:
var
Msg: Cardinal;
case Msg of
WM_CHAR:
WM_KEYDOWN:
WM_KEYUP:
begin
// Do something
end;
end;
Use commas to separate the labels:
var
Msg: Cardinal;
...
case Msg of
WM_CHAR,
WM_KEYDOWN,
WM_KEYUP:
begin
// Do something
end;
end;
As @SertacAkyuz mentioned, if the values are consecutive, you can do something like:
case Msg of
WM_KEYDOWN .. WM_CHAR: // range
begin
// Do something
end;
end;