This component provides a customisable Windows message dialog box. The component wraps the Windows MessageBoxIndirect API call. It enables various icons to be displayed and various arrangements of buttons to be used. Help is supported.
The component is compatible with Delphi 2, 3 and 4. It may work correctly in Delphi 5 but this has not been tested. The help file integrates with the IDE only with Delphi 3 and 4.
In these instructions $(DELPHI)
is to be taken to represent the path where the appropriate version of Delphi was installed. For example, if you have Delphi 2 installed on the default installation path then $(DELPHI)
is equivalent to C:\Program Files\Borland\Delphi 2.0
.
pjmsgdlg.zip
into a folder.
PJMessageDialog.pas
and PJMessageDialog.dcr
to the folder from where you wish to install the component into the Delphi
Component Palette. This will probably be an existing folder where you keep
the library components - say the default $(DELPHI)\lib
folder.
PJMessageDialog.pas
file in the folder where you placed
it. Click OK to recompile the components library.
PJMessageDialog.pas
from the place where
you copied it if you wish. The component will appear on a palette called PJ
Stuff. You can move the component to a different palette as required,
or hack the source code (before installing the component) by finding the Register
procedure at the end of the code and changing the string 'PJ stuff'
to the name of the required palette.
Note: the help file is designed for use with Delphi 3 and 4 and is not compatible with the Delphi 2.
pjmsgdlg.zip
into a folder, preserving the directory
structure.
PJMessageDialog.pas
and PJMessageDialog.dcr
to where you wish to install the component into the Delphi Component Palette.
This will probably be a sub-folder of the $(DELPHI)\lib
folder.
PJMessageDialog.pas
and select the file.
$(DELPHI)\lib\dclusrXX.dpk
(where XX=30 for Delphi 3 and XX=40 for Delphi 4).
PJMessageDialog.pas
from the place where
you copied it if you wish. The component will appear on a palette called PJ
Stuff. You can move the component to a different palette as required,
or hack the source code (before installing the program) by finding the Register
procedure at the end of the code and changing the string 'PJ stuff'
to the name of the required palette.
PJMessageDialog.hlp
to whichever folder you wish to
install it to.DelphiX.cfg
(in $(DELPHI)\Help
), adding
the line :Link PJMessageDialog.hlp
to the end of the section
labelled "Third party help".DelphiX.cnt
(in $(DELPHI)\Help
), adding
the line :Index PJSoft Message Dialog Component=PJMessageDialog.hlp
towards the end of the index section.HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Help
and add a new string value named PJMessageDialog.hlp
whose
value is the path where you copied the help file (probably ($DELPHI)\Help
).No bugs reported to date.
Release 1.0 of 06/04/2001
PJMessageDialog v1.0 of 30/03/2001
This component is copyright © P.D.Johnson, 2001.
The source code and help files can be freely distributed on a not-for-profit basis providing that:
By not-for-profit I mean that you may recover out of pocket expenses incurred in distributing the code, but should not make a profit from this.
If you discover any bugs in this implementation, or if you have any update suggestions, please contact me on peter.johnson@openlink.org.
Please do modify the code for you own use. I'd like to see any changes you make - I could incorporate them into future versions. Please notify me of changes on at the above e-mail address.
This software is provided as is - no warranty is given as to its suitability for any purposes to which you may wish to put it.
I'm Peter Johnson - a hobbyist programmer living in Ceredigion in West Wales, UK. I write mainly in Delphi, but occasionally dabble in C, C++ and Java. My programs are available for download on my web-site: http://www.pjsoft.contactbox.co.uk/.
I can be contacted by e-mail on peter.johnson@openlink.org.