Skip over navigation

Message Dialogue Components

Components used to display message dialogue boxes

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

Overview

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

TPJWinMsgDlg
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.
TPJVCLMsgDlg
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 dd-messagedlg-3.0.0.zip.

Download v3.0.0

The Message Dialogue Components source code is hosted in the ddablib/msgdlg GitHub repository. You can git clone or fork the repository as required.

Installation

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.

Documentation

The Message Dialogue Components are comprehensively documented online here

The project's change log can be viewed here.

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 Message Dialogue Components issue tracker.

If you have created a bug fix or have implemented a new feature please open a pull request for it.

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.

License

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.