Message Dialog Components
The Message Dialog Components are supplied in a single unit named PJMessageDialog. There are three components:
| Class | Description |
| TPJWinMsgDlg | This component wraps the Windows MessageBoxIndirect API call and displays a message box based on that provided by Windows. This component 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. 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 dialog box component's form can been customised by handling the OnShow and OnHide events. |
| TPJMessageDialog (deprecated) | This is an updated and bug-fixed version of the component supplied in release 1 of this unit. It is only provided for backwards compatibility with existing projects that use the old version. It exposes the same properties as the old component. Some of these properties vary from those common to TPJWinMsgDlg and TPJVCLMsgDlg. It is recommended that TPJWinMsgDlg or TPJVCLMsgDlg are used in new projects. This component may be dropped from future releases. It is not documented further here. |
Links: