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

📄 msgrecform_u.pas

📁 delphi 控件有需要的可以下载看看,可以用的,希望对你用 帮助
💻 PAS
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -