Is there a method to modernize how the Application.MessageBox()
dialog looks in Win11? Perhaps by creating a manifest file or something to make classic desktop app to look newer?
CodePudding user response:
In a word, no.
Application.MessageBox()
calls the Win32 MessageBox()
API, which is an old dialog.
For a newer look, you need to use the Win32 Task Dialog API that was introduced in Windows Vista, instead of using MessageBox()
.
Modern Delphi versions have a TTaskDialog
component, and TaskMessageDlg...()
wrapper functions in the (Vcl.)Dialogs
unit. But those do not exist in Delphi 7, so you will have to define and import the Task Dialog API types and functions manually.