M
muyixin
Unregistered / Unconfirmed
GUEST, unregistred user!
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 }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
Application.MessageBox('11','22',MB_OK );//////////////////////////
end;
end.
我想弄不明白
messagebox和messagedlg有什么区别 为什么messagebox前要加Application. 而messagedlg却不用,application什么意思,是否我所有用messagedlg写的弹出的对话框都可以用application.messagebox来代替??
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 }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
Application.MessageBox('11','22',MB_OK );//////////////////////////
end;
end.
我想弄不明白
messagebox和messagedlg有什么区别 为什么messagebox前要加Application. 而messagedlg却不用,application什么意思,是否我所有用messagedlg写的弹出的对话框都可以用application.messagebox来代替??