unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
procedure ShowMessage(const Msg: string); overload;
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.ShowMessage(const Msg: string);
begin
Application.MessageBox(PChar(Msg), PChar('我的标题'),
MB_ICONASTERISK + MB_OK);
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
ShowMessage('Delphi 我爱你!!!');
end;
end.
也可以设计你自己喜欢的BOX Form。
技术交流QQ:136293586