Tom
Tom

Reputation: 6707

Modernizing the look of Application.Messagebox for Windows 11

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?

Upvotes: 1

Views: 960

Answers (1)

Remy Lebeau
Remy Lebeau

Reputation: 595971

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.

Upvotes: 5

Related Questions