This non-visual component encapsulates an About Box. When displayed the About Box appears like this:
The dialogue box can either display information stored in its properties or from the host program's version information resources.
TPJAboutBoxDlg requires that a DelphiDabbler Version Information Component is already installed in order to compile.
The component has string properties to display five different pieces of information in the about box. These properties are:
Title – The dialogue box's window caption. The default value is 'About'.
ProgramName – The name of the program. This is the title of the application. The default value is the same as TApplications's Title property.
Version – This version number of the program. Optional property – default is nothing.
Copyright – A copyright message. Optional property – default is nothing.
Notes – Up to three lines of notes. Optional property – default is nothing.
Alternatively, the about box can display information from a VERSIONINFO resource included in the program. This is accessed via a linked TPJVersionInfo component. The values of the ProgramName, Version, Copyright and Notes properties are ignored and relevant strings from the program's version information are used in their stead.
The dialog's position can be specified relative to the screen, desktop or parent application. The dialog has a single close button whose appearance and position can be customised. The About box also displays the program's icon.
Finally, the dialog box's font can be specified using the component's Font property.
A demo program is included in the
Demo sub-directory of download that can be used to exercise the component.