This unit contains a component that provides a pop-up menu giving access to the 16 basic Windows colour. Also included are:
The unit is compatible with Delphi 4. It may work correctly in Delphi 5 but this has not been tested.
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 4 installed on the default installation path
then $(DELPHI)
is equivalent to C:\Program Files\Borland\Delphi4
.
pjcolourmenu.zip
into a folder, preserving
the folder structure. PJColourPopupMenu.pas
, PJColourPopupMenu.dcr
,
PJColourPopupMenuEd.pas
and PJColourPopupMenuEd.dfm
to
where you wish to install into Delphi. This will probably be a sub-folder
of the $(DELPHI)\lib
folder. PJColourPopupMenu.pas
and PJColourPopupMenuEd.pas
and select the files.
$(DELPHI)\lib\dclusrXX.dpk
(where XX=30 for Delphi 3 and XX=40 for Delphi 4).
PJColourPopupMenu.pas
and PJColourPopupMenuEd.pas
from the place where you copied them 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 alter 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.
PJColourPopupMenu.hlp
to whichever folder you wish
to install it to.DelphiX.cfg
(in $(DELPHI)\Help
), adding
the line :Link PJColourPopupMenu.hlp
to the end of the section
labelled "Third party help".DelphiX.cnt
(in $(DELPHI)\Help
), adding
the line :Index PJSoft Colour Popup Menu=PJColourPopupMenu.hlp
towards the end of the index section.HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Help
and add a new string value named PJColourPopupMenu.hlp
whose
value is the path where you copied the help file (probably ($DELPHI)\Help
).PJColourPopupMenuDemo.dpr
, FmColourPopupMenuDemo.pas
and FmColourPopupMenuDemo.dfm
from the Demos
sub-folder to a folder (or use them in the place where they were extracted).DemoReadMe.txt
from the Demos
folder for instructions on how to use the demo project. No bugs reported to date.
Release 1.0 of 06/05/2001
PJColourPopupMenu v1.0 of 06/05/2001
This unit and help file are 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 [email protected].
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 [email protected].