⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 unit4.pas

📁 一个让你记英语口语的小程序
💻 PAS
字号:
unit Unit4;

interface

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

type
  TForm4 = class(TForm)
    SpinEdit1: TSpinEdit;
    Button1: TButton;
    Button2: TButton;
    CheckBox1: TCheckBox;
    CheckBox2: TCheckBox;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form4: TForm4;

implementation

uses Unit1;

{$R *.dfm}

procedure TForm4.Button1Click(Sender: TObject);
begin
  form1.DBText2.Font.Size:=SpinEdit1.Value;


  if (CheckBox2.Checked) and (CheckBox1.Checked) then
     form1.DBText2.Font.Style:=[fsBold,fsItalic]
  else
  begin
    if CheckBox1.Checked then
    form1.DBText2.Font.Style:=[fsBold]
    else
      if CheckBox2.Checked then
        form1.DBText2.Font.Style:=[fsItalic]
        else
          form1.DBText2.Font.Style:=[];

  end;


end;

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

end.

⌨️ 快捷键说明

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