mainunit.pas

来自「《delphi 7.0_8.0课程设计与系统开发案例》随书代码」· PAS 代码 · 共 78 行

PAS
78
字号
unit MainUnit;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Buttons, StdCtrls;

type
  TForm1 = class(TForm)
    Label1: TLabel;
    Label2: TLabel;
    GroupBox1: TGroupBox;
    RadioButton1: TRadioButton;
    RadioButton2: TRadioButton;
    RadioButton3: TRadioButton;
    RadioButton4: TRadioButton;
    RadioButton5: TRadioButton;
    RadioButton6: TRadioButton;
    procedure SpeedButton1Click(Sender: TObject);
    procedure RadioButton6Click(Sender: TObject);
    procedure RadioButton1Click(Sender: TObject);
    procedure RadioButton2Click(Sender: TObject);
    procedure RadioButton4Click(Sender: TObject);
    procedure RadioButton3Click(Sender: TObject);
    procedure RadioButton5Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

uses XYKCUnit, BJKCUnit, TYCXUnit, TYBJUnit, PrintUnit;

{$R *.dfm}

procedure TForm1.SpeedButton1Click(Sender: TObject);
begin
Close;
end;

procedure TForm1.RadioButton6Click(Sender: TObject);
begin
Close;
end;

procedure TForm1.RadioButton1Click(Sender: TObject);
begin
Form2.show;
end;

procedure TForm1.RadioButton2Click(Sender: TObject);
begin
Form3.show;
end;

procedure TForm1.RadioButton4Click(Sender: TObject);
begin
Form4.show;
end;

procedure TForm1.RadioButton3Click(Sender: TObject);
begin
Form5.show;
end;

procedure TForm1.RadioButton5Click(Sender: TObject);
begin
Form6.Show;
end;

end.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?