popupfrm.pas
来自「弹出式提示」· PAS 代码 · 共 47 行
PAS
47 行
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 + =
减小字号Ctrl + -
显示快捷键?