unit Unit1;interfaceuses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs;type
  TForm1 = class(TForm)
  private
  procedure WMPant(var msg : TWMPant):message:WM_PANT;
    { Private declarations }
  public
    { Public declarations }
  end;var
  Form1: TForm1;implementation{$R *.dfm}procedure TWMPant(var msg : TWMPant);
begin
messagebeep(0);
inherited;
end;end.
 [Error] Unit1.pas(12): Undeclared identifier: 'TWMPant'