unit PopupScherm; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Imaging.pngimage, Vcl.ExtCtrls; type TfmPopupScherm = class(TForm) lblWaarschuwing: TLabel; Image1: TImage; pnlbtnActie1: TPanel; pnlbtnActie2: TPanel; procedure pnlbtnActie1Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var fmPopupScherm: TfmPopupScherm; implementation uses Images; {$R *.dfm} procedure TfmPopupScherm.pnlbtnActie1Click(Sender: TObject); begin Close; end; end.