main.pas

来自「delphi编程控件」· PAS 代码 · 共 76 行

PAS
76
字号
unit main;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  StdCtrls, aurllabl, ExtCtrls, Buttons, ARichEd;

type
  TFMainForm = class(TForm)
    GroupBox1: TGroupBox;
    Button1: TButton;
    Button2: TButton;
    Button3: TButton;
    Button4: TButton;
    BitBtn1: TBitBtn;
    GroupBox2: TGroupBox;
    Label14: TLabel;
    Label15: TLabel;
    Image1: TImage;
    Label16: TLabel;
    Label17: TLabel;
    AutoURLLabel1: TAutoURLLabel;
    AutoURLLabel2: TAutoURLLabel;
    AutoURLLabel3: TAutoURLLabel;
    AutoURLLabel4: TAutoURLLabel;
    AutoRichEdit1: TAutoRichEdit;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
    procedure Button3Click(Sender: TObject);
    procedure Button4Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FMainForm: TFMainForm;

implementation

uses ulform, uafind, uincsr, ulcombo;

{$R *.DFM}

procedure TFMainForm.Button1Click(Sender: TObject);
begin
  if(FALocateForm = Nil) then
    FALocateForm := TFALocateForm.Create(Application);
  FALocateForm.Show;  
end;

procedure TFMainForm.Button2Click(Sender: TObject);
begin
  if(FAFindForm = Nil) then
    FAFindForm := TFAFindForm.Create(Application);
  FAFindForm.Show;  
end;

procedure TFMainForm.Button3Click(Sender: TObject);
begin
  if(FAIncSearch = Nil) then
    FAIncSearch := TFAIncSearch.Create(Application);
  FAIncSearch.Show;  
end;

procedure TFMainForm.Button4Click(Sender: TObject);
begin
  if(FALocateComboBox = Nil) then
    FALocateComboBox := TFALocateComboBox.Create(Application);
  FALocateComboBox.Show;
end;

end.

⌨️ 快捷键说明

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