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

📄 aplayout.pas

📁 delphi编程控件
💻 PAS
字号:
unit aplayout;

interface

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

type
  TFAPanelLayout = class(TForm)
    Panel1: TPanel;
    AutoDBPanel1: TAutoDBPanel;
    RGPanelLayout: TRadioGroup;
    Button1: TButton;
    Button2: TButton;
    DBNavigator1: TDBNavigator;
    BitBtn1: TBitBtn;
    procedure RGPanelLayoutClick(Sender: TObject);
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FAPanelLayout: TFAPanelLayout;

implementation

uses udm;

{$R *.DFM}

procedure TFAPanelLayout.RGPanelLayoutClick(Sender: TObject);
begin
  case RGPanelLayout.ItemIndex of
    0: AutoDBPanel1.PanelLayout.Assign(DM.AReposPanel1.PanelLayout);
    1: AutoDBPanel1.PanelLayout.Assign(DM.AReposPanel2.PanelLayout);
    2: AutoDBPanel1.PanelLayout.Assign(DM.AReposPanel3.PanelLayout);
  end;
end;

procedure TFAPanelLayout.Button1Click(Sender: TObject);
begin
  AutoDBPanel1.ControlsCustomizing;
end;

procedure TFAPanelLayout.Button2Click(Sender: TObject);
begin
  case RGPanelLayout.ItemIndex of
    0: DM.AReposPanel1.PanelLayout.Assign(AutoDBPanel1.PanelLayout);
    1: DM.AReposPanel2.PanelLayout.Assign(AutoDBPanel1.PanelLayout);
    2: DM.AReposPanel3.PanelLayout.Assign(AutoDBPanel1.PanelLayout);
  end;
end;

procedure TFAPanelLayout.FormClose(Sender: TObject;
  var Action: TCloseAction);
begin
  Action := caFree;
  FAPanelLayout := Nil;
end;

procedure TFAPanelLayout.FormCreate(Sender: TObject);
begin
  RGPanelLayoutClick(Sender);
end;

end.

⌨️ 快捷键说明

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