Advertisement
Guest User

Untitled

a guest
Jan 28th, 2023
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.93 KB | None | 0 0
  1. program Project1;
  2.  
  3. uses
  4.   Vcl.Forms,
  5.   Unit1 in 'Unit1.pas' {Form1};
  6.  
  7. {$R *.res}
  8. var
  9.   Form1: TForm1;
  10.   Form2: TForm1;
  11.   Form3: TForm1;
  12. begin
  13.   Application.Initialize;
  14.   Application.MainFormOnTaskbar := True;
  15.   Form2 := TForm1.Create(nil);
  16.   Form3 := TForm1.Create(nil);
  17.   Application.CreateForm(TForm1, Form1);
  18.   Form2.Show;
  19.   Form3.Show;
  20.   Application.Run;
  21. end.
  22.  
  23.  
  24. unit Unit1;
  25.  
  26. interface
  27.  
  28. uses
  29.   Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  30.   Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls;
  31.  
  32. type
  33.   TForm1 = class(TForm)
  34.     Button1: TButton;
  35.     procedure Button1Click(Sender: TObject);
  36.   private
  37.     FButtonClicked : Integer;
  38.   public
  39.     property ButtonClicked : Integer read FButtonClicked;
  40.   end;
  41.  
  42. //var
  43. //  Form1: TForm1;
  44.  
  45. implementation
  46.  
  47. {$R *.dfm}
  48.  
  49. procedure TForm1.Button1Click(Sender: TObject);
  50. begin
  51.   inc(FButtonClicked);
  52. end;
  53.  
  54. end.
  55.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement