53 lines
957 B
ObjectPascal
53 lines
957 B
ObjectPascal
unit U_NoteList1;
|
|
|
|
interface
|
|
|
|
uses
|
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
|
Dialogs, StdCtrls;
|
|
|
|
type
|
|
Tfrmwlnote1 = class(TForm)
|
|
Memo1: TMemo;
|
|
Label1: TLabel;
|
|
Button1: TButton;
|
|
Button2: TButton;
|
|
procedure FormDestroy(Sender: TObject);
|
|
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
|
procedure Button1Click(Sender: TObject);
|
|
procedure Button2Click(Sender: TObject);
|
|
private
|
|
{ Private declarations }
|
|
public
|
|
{ Public declarations }
|
|
end;
|
|
|
|
var
|
|
frmwlnote1: Tfrmwlnote1;
|
|
|
|
implementation
|
|
|
|
{$R *.dfm}
|
|
|
|
procedure Tfrmwlnote1.FormDestroy(Sender: TObject);
|
|
begin
|
|
frmwlnote1:=nil;
|
|
end;
|
|
|
|
procedure Tfrmwlnote1.FormClose(Sender: TObject; var Action: TCloseAction);
|
|
begin
|
|
Action:=cahide;
|
|
end;
|
|
|
|
procedure Tfrmwlnote1.Button1Click(Sender: TObject);
|
|
begin
|
|
ModalResult:=1;
|
|
end;
|
|
|
|
procedure Tfrmwlnote1.Button2Click(Sender: TObject);
|
|
begin
|
|
ModalResult:=-1;
|
|
end;
|
|
|
|
end.
|