Skip over navigation

Message Dialogue Components

Components used to display message dialogue boxes

Version 3.0.0
Released 08 Feb 2014
Platforms Win32 & Win64
Framework VCL
Compatibilty Delphi 7 & later


This unit provides various customisable message dialogue box components. Three components are installed on the component palette. They are:

This component wraps the Windows MessageBoxIndirect API call and displays a message box based on that provided by Windows. It will be suitable for most purposes and has the lighter footprint.
This component uses the Delphi VCL CreateMessageDialog function to create a form based message box. (CreateMessageDialog is used by the standard Delphi MessageDlgXXX functions). The component provides more flexibility than either the Delphi functions or TPJWinMsgDlg. It should be used when it is necessary to display buttons or combinations of buttons that are not supported by the Windows API message box or when a finer degree of control over the appearance and behaviour of the message box is required. TPJVCLMsgDlg supports all the features of TPJWinMsgDlg and extends them. The dialogue box component's form can be customised by handling the OnShow and OnHide events.

A demo program that exercises the components is included in the download in the Demo directory. An included ReadMe.txt provides more information.

Get The Code

You can download the latest version of the Message Dialogue Components directly from SourceForge as

Download v3.0.0

Message Dialogue Components is a sub-project of the DDabLib project which is maintained in a Subversion repository. The code is developed in the trunk/projects/msgdlg branch.

Subversion users can check out the source code of the current release from the repository on SourceForge by doing:

svn checkout codedir

where codedir is the directory where you want to checkout code. To check out other versions, simply specify a different version number.

The latest development tree can be checked out using:

 svn checkout codedir

Check outs are read only, but you can easily contribute code: see Feedback & Queries below.


The Message Dialogue Components are supplied in a zip file. Before installing you need to extract all the files from the zip file, preserving the directory structure. The following files will be extracted:

  • PJMessageDialog.pas – component source code.
  • PJMessageDialog.dcr – component palette glyphs.
  • ReadMe.htm – read-me file.
  • ChangeLog.txt – project change log.
  • MPL-2.txt – the Mozilla Public License v2.0.
  • Documentation.URL – short-cut to the components' online documentation.

In addition to the above files you will find the source code of the demo project in the Demo sub-directory.

You can now install the components into the Delphi IDE. To do this, the files PJMessageDialog.pas and PJMessageDialog.dcr should be added to a design time package. If you need help doing this see here.


The Message Dialogue Components are comprehensively documented online here

The project's change log can be viewed on SourceForge

A read-me file (ReadMe.htm) is included in the project download.

There is also an FAQ.

Feedback & Queries

If you find any bugs or want to suggest a new feature please report them using the Issue Tracker.

Click the Create Ticket button to create a ticket then complete the form giving as much information as possible.

The issue tracker is shared among all the projects in the DelphiDabbler Code Library, so please make sure you enter msgdlg in the Project edit box to make it clear which project you are referring to. You should also choose Defect in the Type drop down list to report a bug or Enhancement to request a new feature.

If you have created a bug fix or have implemented a new feature please attach a zip file to your ticket that contains your source code.

Should you have any queries about using the components please read the documentation and/or FAQ. If you can't find an answer in the documentation then post a message in the discussion group.


The Message Dialogue Components are open source. They are copyright © 2001-2014 by Peter Johnson. The source code is made available under the terms of the Mozilla Public License v2.0. All relevant trademarks are acknowledged.