TForm.addclick procedure is usually attributed to buttons. You will need this when you are creating buttons inside Lazarus.
The same code should look like this:
procedure TForm.AddClick(Sender: TObject);
begin
IF InputQuery('Input-Add','File: ',Value) Then
Begin
IF Value<>'' Then ListBox1.Items.Add(Value);
End;
end;