msgrecform_u.pas

来自「UserControl2.18a FOR D7,D2005」· PAS 代码 · 共 68 行

PAS
68
字号
unit MsgRecForm_U;

interface

uses
{$IFDEF VER130}
{$ELSE}
  Variants,
{$ENDIF}
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Buttons, ExtCtrls, UCBase, UCXPStyle; //modified by fduenas

type
  TMsgRecForm = class(TForm)
    Panel1: TPanel;
    lbTitulo: TLabel;
    Image1: TImage;
    lbDE: TLabel;
    stDe: TStaticText;
    lbAssunto: TLabel;
    stAssunto: TStaticText;
    lbMensagem: TLabel;
    MemoMsg: TMemo;
    btFechar: TBitBtn;
    lbData: TLabel;
    stData: TStaticText;
    UCXPStyle: TUCXPStyle;
    procedure btFecharClick(Sender: TObject);
    procedure FormCreate(Sender: TObject); //added by fduenas
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  MsgRecForm: TMsgRecForm;

implementation

uses UCMessages;

{$R *.dfm}

procedure TMsgRecForm.btFecharClick(Sender: TObject);
begin
  Close;
end;

procedure TMsgRecForm.FormCreate(Sender: TObject);
begin
 //added by fduenas
 if not (Self.Owner is TUCAppMessage) then
    exit;
 with TUCAppMessage(Self.Owner).UserControl.Settings.AppMessages do
 begin
  Self.Caption := MsgRec_WindowCaption;
  lbTitulo.Caption := MsgRec_Title;
  lbDE.Caption := MsgRec_LabelFrom;
  lbData.Caption := MsgRec_LabelDate;
  lbAssunto.Caption := MsgRec_LabelSubject;
  lbMensagem.Caption := MsgRec_LabelMessage;
  btFechar.Caption := MsgRec_BtClose;
 end;
end;

end.

⌨️ 快捷键说明

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