Change caption and attributes of ShowMessage dialog
问题 In Delphi can you change the caption of the ShowMessage dialog because by default it is taking my exe name. And can I change the background color, size of the same? 回答1: You can create your own custom dialogs by using delphi's CreateMessageDialog function. Example below: var Dlg: TForm; begin Dlg := CreateMessageDialog('message', mtInformation, [mbOk], mbOK); // Treat Dlg like any other form Dlg.Caption := 'Hello World'; try // The message label is named 'message' with TLabel(Dlg