Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- program Project1;
- uses
- Vcl.Forms,
- Unit1 in 'Unit1.pas' {Form1};
- {$R *.res}
- var
- Form1: TForm1;
- Form2: TForm1;
- Form3: TForm1;
- begin
- Application.Initialize;
- Application.MainFormOnTaskbar := True;
- Form2 := TForm1.Create(nil);
- Form3 := TForm1.Create(nil);
- Application.CreateForm(TForm1, Form1);
- Form2.Show;
- Form3.Show;
- Application.Run;
- end.
- unit Unit1;
- interface
- uses
- Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
- Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls;
- type
- TForm1 = class(TForm)
- Button1: TButton;
- procedure Button1Click(Sender: TObject);
- private
- FButtonClicked : Integer;
- public
- property ButtonClicked : Integer read FButtonClicked;
- end;
- //var
- // Form1: TForm1;
- implementation
- {$R *.dfm}
- procedure TForm1.Button1Click(Sender: TObject);
- begin
- inc(FButtonClicked);
- end;
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement