unit Unit2;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, CheckLst, Menus;
type
TForm1 = class(TForm)
Memo1: TMemo;
Button1: TButton;
CheckListBox1: TCheckListBox;
Button2: TButton;
Button3: TButton;
Button4: TButton;
PopupMenu1: TPopupMenu;
Beenden1: TMenuItem;
procedure Beenden1Click(Sender: TObject);
procedure xy1Click(Sender: TObject);
procedure Button4Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure klickmich(sender:tObject)stdcall; external 'project2.dll';
procedure TForm1.Beenden1Click(Sender: TObject);
begin
Close;
end;
procedure TForm1.Button4Click(Sender: TObject);
var
menu : TMenuItem;
begin
menu := TMenuItem.Create(self);
menu.Caption := '123';
menu.OnClick := Klickmich;
form1.popupmenu1.Items.Add(menu);
end;
end.