ucd48l.pas

来自「通过程序的试算平衡表」· PAS 代码 · 共 67 行

PAS
67
字号
unit UCD48L;

interface

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

type
  TFmCD48L = class(TForm)
    Label1: TLabel;
    RadioButton1: TRadioButton;
    RadioButton2: TRadioButton;
    BitBtn1: TBitBtn;
    Panel1: TPanel;
    Label2: TLabel;
    Label3: TLabel;
    xpEdit1: TxpEdit;
    xpEdit2: TxpEdit;
    DosMove1: TDosMove;
    Label4: TLabel;
    xpEdit3: TxpEdit;
    Label5: TLabel;
    xpEdit4: TxpEdit;
    procedure RadioButton2Click(Sender: TObject);
    procedure RadioButton1Click(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FmCD48L: TFmCD48L;

implementation

{$R *.dfm}

procedure TFmCD48L.RadioButton2Click(Sender: TObject);
begin
  If RadioButton2.Checked Then
  Begin
    Panel1.Visible := True;
    FmCD48L.BitBtn1.Default := False;
    FmCD48L.Height := 375;
  End;
end;

procedure TFmCD48L.RadioButton1Click(Sender: TObject);
begin
  If RadioButton1.Checked Then
  Begin
    Panel1.Visible := False;
    FmCD48L.BitBtn1.Default := True;
    FmCD48L.Height := 150;
  End;
end;

procedure TFmCD48L.FormCreate(Sender: TObject);
begin
  Height := 150;
end;

end.

⌨️ 快捷键说明

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