Jump to content

Recommended Posts

Posted

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?

Posted

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.

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...