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

📄 popupfrm.pas

📁 弹出式提示
💻 PAS
字号:
unit PopupFrm;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ExtCtrls;

type
  TFormPopup = class(TForm)
    MemoMsg: TMemo;
    Label1: TLabel;
    Image1: TImage;
    procedure Image1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
    procedure FSetMsg(AValue: string);
    function FGetMsg: string;
    property Msg: string read FGetMsg write FSetMsg;
  end;

var
  FormPopup: TFormPopup;

implementation

{$R *.dfm}

procedure TFormPopup.FSetMsg(AValue: string);
begin
  MemoMsg.Lines.Text := AValue;
end;

function TFormPopup.FGetMsg: string;
begin
  result := MemoMsg.Lines.Text;
end;

procedure TFormPopup.Image1Click(Sender: TObject);
begin
  self.Top := Screen.Height;
end;

end.

⌨️ 快捷键说明

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