ustart.pas

来自「Gprs」· PAS 代码 · 共 53 行

PAS
53
字号
unit UStart;

interface

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

type
  TFStart = class(TForm)
    RadioButton1: TRadioButton;
    RadioButton2: TRadioButton;
    Button1: TButton;
    Button2: TButton;
    procedure Button2Click(Sender: TObject);
    procedure FormCreate(Sender: TObject);
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FStart: TFStart;

implementation

uses umain;

{$R *.dfm}

procedure TFStart.Button2Click(Sender: TObject);
begin
    Close;
end;

procedure TFStart.FormCreate(Sender: TObject);
begin
    if Form1.StartType=1 then RadioButton2.Checked:=true
    else RadioButton1.Checked:=true;
end;

procedure TFStart.Button1Click(Sender: TObject);
begin
    if RadioButton1.Checked then Form1.StartType:=2
      else Form1.StartType:=1;
    Form1.writeinifile(2);
    Close;
end;

end.

⌨️ 快捷键说明

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