Freeman35 Posted December 14, 2016 Posted December 14, 2016 MessageDlg('Dialog1', mtError, mbYesNoCancel); // This line copied from "MessageBoxesDialogs.pas" in demo and get error when IDE compile win10 delphi berlin 10.1 [dcc32 Error] u_.pas(122): E2250 There is no overloaded version of 'MessageDlg' that can be called with these arguments I do not need three button. Just need Ok button, message and error icon thats all. How to do this? Quote
Sherzod Posted December 14, 2016 Posted December 14, 2016 Hi, uses ... Dialogs; MessageDlg('Dialog1', mtError, [mbOk]); Best regards. Quote
Freeman35 Posted December 14, 2016 Author Posted December 14, 2016 Thank your answer, But your answer is wrong, error is NOT "Undeclared identifier: 'MessageDlg". I get this error "There is no overloaded version of 'MessageDlg' that can be called with these arguments" And if its was worked, I test "[mbOk]);" While writing this message, I get idea is this unigui error ? or IDE error. I'll check this. Thank your answer Edit: in IDE, Delphi vcl application has same error, I think this error not unigui's I'll continue testing. How to resolved: MessageDlg('Dialog1', mtError, [mbOk], 0); another Interesting thing, in uses, "Vcl.Dialogs" and is try use like this "Dialogs.MessageDlg" create error "Undeclared identifier" need check namespace use in uses clause. Quote
Freeman35 Posted December 17, 2016 Author Posted December 17, 2016 Not sure is this bug. TUniBaseForm.MessageDlg() conflict with Vcl.Dialogs.MessageDlg() MessageDlg('Dialog1', mtError, [mbOk], 0, mbOk); red colored option come from Vcl.Dialogs. But in TUniBaseForm not support thats. (I have not source, yet so I can not check in unigui.) Usually "MessageDlg" useing in TUniBaseForm so, need write Self.MessageDlg. If need use MessageDlg in function or procedure out of TUniBaseForm class ? Is "Vcl.Dialogs.MessageDlg()" support in ISAPI and all browser ? And I wish TUniBaseForm.MessageDlg() support out of class and support default button too. Quote
Administrators Farshad Mohajeri Posted December 17, 2016 Administrators Posted December 17, 2016 You must add uniGUIDialogs to the uses list. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.