searchresultinfo.pas

来自「《Delphi 2005数据库系统开发与应用》源代码」· PAS 代码 · 共 140 行

PAS
140
字号
unit SearchResultInfo;

interface

uses
  System.Drawing, System.Collections, System.ComponentModel,
  System.Windows.Forms, System.Data;

type
  FrmSearchResult = class(System.Windows.Forms.Form)
  {$REGION 'Designer Managed Code'}
  strict private
    /// <summary>
    /// Required designer variable.
    /// </summary>
    Components: System.ComponentModel.Container;
    DgResultInfo: System.Windows.Forms.DataGrid;
    GroupBox1: System.Windows.Forms.GroupBox;
    Label1: System.Windows.Forms.Label;
    TxtStID: System.Windows.Forms.TextBox;
    BtSearch: System.Windows.Forms.Button;
    /// <summary>
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor.
    /// </summary>
    procedure InitializeComponent;
  {$ENDREGION}
  strict protected
    /// <summary>
    /// Clean up any resources being used.
    /// </summary>
    procedure Dispose(Disposing: Boolean); override;
  private
    { Private Declarations }
  public
    constructor Create;
  end;

  [assembly: RuntimeRequiredAttribute(TypeOf(FrmSearchResult))]

implementation

{$REGION 'Windows Form Designer generated code'}
/// <summary>
/// Required method for Designer support -- do not modify
/// the contents of this method with the code editor.
/// </summary>
procedure FrmSearchResult.InitializeComponent;
begin
  Self.DgResultInfo := System.Windows.Forms.DataGrid.Create;
  Self.GroupBox1 := System.Windows.Forms.GroupBox.Create;
  Self.Label1 := System.Windows.Forms.Label.Create;
  Self.TxtStID := System.Windows.Forms.TextBox.Create;
  Self.BtSearch := System.Windows.Forms.Button.Create;
  (System.ComponentModel.ISupportInitialize(Self.DgResultInfo)).BeginInit;
  Self.GroupBox1.SuspendLayout;
  Self.SuspendLayout;
  // 
  // DgResultInfo
  // 
  Self.DgResultInfo.DataMember := '';
  Self.DgResultInfo.Dock := System.Windows.Forms.DockStyle.Bottom;
  Self.DgResultInfo.HeaderForeColor := System.Drawing.SystemColors.ControlText;
  Self.DgResultInfo.Location := System.Drawing.Point.Create(0, 118);
  Self.DgResultInfo.Name := 'DgResultInfo';
  Self.DgResultInfo.Size := System.Drawing.Size.Create(320, 176);
  Self.DgResultInfo.TabIndex := 0;
  // 
  // GroupBox1
  // 
  Self.GroupBox1.Controls.Add(Self.BtSearch);
  Self.GroupBox1.Controls.Add(Self.TxtStID);
  Self.GroupBox1.Controls.Add(Self.Label1);
  Self.GroupBox1.Location := System.Drawing.Point.Create(8, 8);
  Self.GroupBox1.Name := 'GroupBox1';
  Self.GroupBox1.Size := System.Drawing.Size.Create(304, 96);
  Self.GroupBox1.TabIndex := 1;
  Self.GroupBox1.TabStop := False;
  Self.GroupBox1.Text := '查询成绩信息';
  // 
  // Label1
  // 
  Self.Label1.Location := System.Drawing.Point.Create(16, 24);
  Self.Label1.Name := 'Label1';
  Self.Label1.TabIndex := 0;
  Self.Label1.Text := '请输入学号';
  Self.Label1.TextAlign := System.Drawing.ContentAlignment.MiddleCenter;
  // 
  // TxtStID
  // 
  Self.TxtStID.Location := System.Drawing.Point.Create(24, 56);
  Self.TxtStID.Name := 'TxtStID';
  Self.TxtStID.TabIndex := 1;
  Self.TxtStID.Text := '';
  // 
  // BtSearch
  // 
  Self.BtSearch.Location := System.Drawing.Point.Create(176, 40);
  Self.BtSearch.Name := 'BtSearch';
  Self.BtSearch.TabIndex := 2;
  Self.BtSearch.Text := '查询';
  // 
  // FrmSearchResult
  // 
  Self.AutoScaleBaseSize := System.Drawing.Size.Create(6, 14);
  Self.ClientSize := System.Drawing.Size.Create(320, 294);
  Self.Controls.Add(Self.GroupBox1);
  Self.Controls.Add(Self.DgResultInfo);
  Self.Name := 'FrmSearchResult';
  Self.Text := '查询成绩';
  (System.ComponentModel.ISupportInitialize(Self.DgResultInfo)).EndInit;
  Self.GroupBox1.ResumeLayout(False);
  Self.ResumeLayout(False);
end;
{$ENDREGION}

procedure FrmSearchResult.Dispose(Disposing: Boolean);
begin
  if Disposing then
  begin
    if Components <> nil then
      Components.Dispose();
  end;
  inherited Dispose(Disposing);
end;

constructor FrmSearchResult.Create;
begin
  inherited Create;
  //
  // Required for Windows Form Designer support
  //
  InitializeComponent;
  //
  // TODO: Add any constructor code after InitializeComponent call
  //
end;

end.

⌨️ 快捷键说明

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