Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unit credits;
- {$mode objfpc}{$H+}
- interface
- uses
- Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls;
- type
- { TFormCredits }
- TFormCredits = class(TForm)
- BtnClose: TButton;
- LblCredits: TLabel;
- procedure BtnCloseClick(Sender: TObject);
- procedure BtnCloseExit(Sender: TObject);
- private
- { private declarations }
- public
- { public declarations }
- end;
- var
- FormCredits: TFormCredits;
- implementation
- {$R *.lfm}
- { TFormCredits }
- //Closes the form
- procedure TFormCredits.BtnCloseClick(Sender: TObject);
- begin
- Close;
- end;
- //Closes the program when the form closes
- procedure TFormCredits.BtnCloseExit(Sender: TObject);
- begin
- Close;
- end;
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement