M
mill666
Unregistered / Unconfirmed
GUEST, unregistred user!
uses
Qdialogs
procedure TForm1.Button1Click(Sender: TObject);
var
bitmap:Tbitmap;
begin
// function MessageDlg(const Caption: WideString; const Msg: WideString; DlgType: TMsgDlgType; Buttons: TMsgDlgButtons; HelpCtx: Longint; DefaultBtn: TMsgDlgBtn = mbNone; Bitmap: TBitmap = nil): Integer; overload;
bitmap:=Tbitmap.Create;
bitmap.LoadFromFile('I:/winefip2/image/°ïÖú.bmp');
messagedlg('****','sex',mtCustom,[mbOk],0,mbOk,bitmap);
end;
编译出现:
[Error] Unit1.pas(35): There is no overloaded version of 'MessageDlg' that can be called with these arguments
但是如果改成:
messagedlg('****','sex',mtCustom,[mbOk],0,mbOk,nil);
却没有什么问题。
请问这是为什么?我已经uses 了Qdialogs了。uses dialogs肯定是不行的吧。
Qdialogs
procedure TForm1.Button1Click(Sender: TObject);
var
bitmap:Tbitmap;
begin
// function MessageDlg(const Caption: WideString; const Msg: WideString; DlgType: TMsgDlgType; Buttons: TMsgDlgButtons; HelpCtx: Longint; DefaultBtn: TMsgDlgBtn = mbNone; Bitmap: TBitmap = nil): Integer; overload;
bitmap:=Tbitmap.Create;
bitmap.LoadFromFile('I:/winefip2/image/°ïÖú.bmp');
messagedlg('****','sex',mtCustom,[mbOk],0,mbOk,bitmap);
end;
编译出现:
[Error] Unit1.pas(35): There is no overloaded version of 'MessageDlg' that can be called with these arguments
但是如果改成:
messagedlg('****','sex',mtCustom,[mbOk],0,mbOk,nil);
却没有什么问题。
请问这是为什么?我已经uses 了Qdialogs了。uses dialogs肯定是不行的吧。