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

📄 fuqimport3replacementedit.pas

📁 Advanced Data Import Component Suite for Borland Delphi and C++ Builder allows you to import your da
💻 PAS
字号:
unit fuQImport3ReplacementEdit;

interface

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

type
  TfmQImport3ReplacementEdit = class(TForm)
    bOk: TButton;
    bCancel: TButton;
    laTextToFind: TLabel;
    laReplaceWith: TLabel;
    chIgnoreCase: TCheckBox;
    edTextToFind: TEdit;
    edReplaceWith: TEdit;
    Bevel: TBevel;
    procedure bOkClick(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

function ReplacementEdit(var TextToFind, ReplaceWith: string;
  var IgnoreCase: boolean): boolean;

implementation

{$R *.DFM}

uses QImport3StrIDs, QImport3;

function ReplacementEdit(var TextToFind, ReplaceWith: string;
  var IgnoreCase: boolean): boolean;
begin
  with TfmQImport3ReplacementEdit.Create(nil) do
    try
      edTextToFind.Text := TextToFind;
      edReplaceWith.Text := ReplaceWith;
      chIgnoreCase.Checked := IgnoreCase;

      Result := ShowModal = mrOk;

      if Result then begin
        TextToFind := edTextToFind.Text;
        ReplaceWith := edReplaceWith.Text;
        IgnoreCase := chIgnoreCase.Checked;
      end;
    finally
      Free;
    end;
end;

procedure TfmQImport3ReplacementEdit.bOkClick(Sender: TObject);
begin
  if edTextToFind.Text = EmptyStr then
    raise Exception.Create(QImportLoadStr(QIE_NeedDefineTextToFind));
  ModalResult := mrOk;
end;

procedure TfmQImport3ReplacementEdit.FormCreate(Sender: TObject);
begin
  Caption := QImportLoadStr(QIWDF_RE_Title);
  laTextToFind.Caption := QImportLoadStr(QIWDF_RE_TextToFind);
  laReplaceWith.Caption := QImportLoadStr(QIWDF_RE_ReplaceWith);
  chIgnoreCase.Caption := QImportLoadStr(QIWDF_RE_IgnoreCase);
end;

end.

⌨️ 快捷键说明

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