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

📄 pfibautoupdeditor.pas

📁 FIBPlus is a component suite intended for work with InterBase. It is direct, fast and flexible Inter
💻 PAS
字号:
{***************************************************************}
{ FIBPlus - component library for direct access to Firebird and }
{ Interbase databases                                           }
{                                                               }
{    FIBPlus is based in part on the product                    }
{    Free IB Components, written by Gregory H. Deatz for        }
{    Hoagland, Longo, Moran, Dunst & Doukas Company.            }
{    mailto:gdeatz@hlmdd.com                                    }
{                                                               }
{    Copyright (c) 1998-2001 Serge Buzadzhy                     }
{    Contact: buzz@devrace.com                                  }
{                                                               }
{ ------------------------------------------------------------- }
{    FIBPlus home page      : http://www.fibplus.net/           }
{    FIBPlus support e-mail : fibplus@devrace.com               }
{ ------------------------------------------------------------- }
{                                                               }
{  Please see the file License.txt for full license information }
{***************************************************************}
unit pFIBAutoUpdEditor;

interface


uses {$IFNDEF LINUX}
      Windows,
     {$ENDIF}
     Classes, Controls, Forms, FIBDataSet, pFIBProps, StdCtrls, Db,
     pFIBDataSet, fraAutoUpdEditor;

type

  TpFIBAutoUpdateOptionForm = class(TForm)
    OkB: TButton;
    CancelB: TButton;
    fAutoUpdateOptionForm1: TfAutoUpdateOptionForm;
    procedure FormCreate(Sender: TObject);
  private
  public
    { Public declarations }
  end;

function EditAutoUpdateOptions(aDataSet: TpFIBDataSet): boolean;

implementation
uses SysUtils,FIBConsts;

{$R *.dfm}

function EditAutoUpdateOptions(aDataSet: TpFIBDataSet): boolean;
var
   aForm: TpFIBAutoUpdateOptionForm;
begin
  Result := False;
  if aDataSet = nil then exit;

  aForm := TpFIBAutoUpdateOptionForm.Create(Application);
  try
    with aForm,aForm.fAutoUpdateOptionForm1 do
    begin
      Caption := Format(Caption, [aDataSet.Name]);
      FDataSet := aDataSet;
      PrepareControls;
      Result := ShowModal = mrOk;
      if Result then
       ApplyToDataSet
   end;
  finally
    aForm.Free;
  end;
end;


procedure TpFIBAutoUpdateOptionForm.FormCreate(Sender: TObject);
begin
  Caption := FPAutoOptEditorCaption;
  OkB.Caption := SOKButton;
  CancelB.Caption := SCancelButton;
end;


end.

⌨️ 快捷键说明

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