Skip to content

Commit 223f5cc

Browse files
committed
Merge branch 'about'
2 parents b996659 + d66c0d2 commit 223f5cc

30 files changed

+171
-111
lines changed

AboutBox/3.6/API.md

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# [About Box Component](../index.md) Programmers' Guide
2+
3+
**Applies to:** ~>3.6
4+
5+
## Introduction
6+
7+
This section of the _About Box Component_ documentation describes the API exposed by the unit to programmers.
8+
9+
## Contents
10+
11+
### Units
12+
13+
| Unit | Descriptions |
14+
|:-----|:-------------|
15+
| _PJAbout_ | The only unit in this project. Contains all the types and routines noted below. |
16+
17+
### Classes
18+
19+
| Class | Descriptions |
20+
|:------|:-------------|
21+
| [_TPJAboutBoxDlg_](./API/TPJAboutBoxDlg.md) | The About Box component. |
22+
| _TPJAboutBoxForm_ | ⛔ The form class that implements the actual about box. This class **must not** be accessed directly and is not documented here. |
23+
24+
### Enumerated Types
25+
26+
| Type | Descriptions |
27+
|:-----|:-------------|
28+
| _TPJAboutBtnPlacing_ | Determines horizontal placement of OK button in about dialog. This is the type of the [_ButtonPlacing_](./API/TPJAboutBoxDlg-ButtonPlacing.md) property. |
29+
| _TPJAboutBtnKinds_ | Determines caption of about dialog's OK button. This is the type of the [_ButtonKind_](./API/TPJAboutBoxDlg-ButtonKind.md) property. |
30+
| _TPJAboutBtnGlyphs_ | Determines what, if any, glyph is displayed on about dialog's OK button. This is the type of the [_ButtonGlyph_](./API/TPJAboutBoxDlg-ButtonGlyph.md) property. |
31+
| _TPJAboutPosition_ | Determines whether about dialog's position (centred or offset) is relative to screen, desktop or owning form. This is the type of the [_Position_](./API/TPJAboutBoxDlg-Position.md) property. |
32+
33+
### Other
34+
35+
| Item | Description |
36+
|:-----|:------------|
37+
| _Register_ | ⛔ Component registration routine, called by the Delphi IDE to register the component. **Do not call**. |
38+
39+
## Conventions
40+
41+
This documentation complies with [these conventions](../../common/conventions.md).
42+
43+
## Links
44+
45+
* [Overview](./Overview.md)

Docs/AboutBox/API/TPJAboutBoxDlg-ButtonGlyph.md renamed to AboutBox/3.6/API/TPJAboutBoxDlg-ButtonGlyph.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
**Class:** [_TPJAboutBoxDlg_](./TPJAboutBoxDlg.md)
88

9+
**Applies to:** ~>3.6
10+
911
```pascal
1012
property ButtonGlyph: TPJAboutBtnGlyphs;
1113
@@ -19,7 +21,7 @@ type TPJAboutBtnGlyphs = (
1921
The About box contains one button which is used to close the dialog box. The button can display a glyph (bitmap) to indicate its use. This property is used to determine which (if any) glyph to display. Valid values for the property and their meanings are as follows:
2022

2123
| Value | Meaning |
22-
|-----------|-------------|
24+
|:----------|:------------|
2325
| _abgOK_ | A green check mark appears on the button face. |
2426
| _abgCancel_ | A red cross appears on the button face. |
2527
| _abgIgnore_ | A green man walking away appears on the button face. |

Docs/AboutBox/API/TPJAboutBoxDlg-ButtonHeight.md renamed to AboutBox/3.6/API/TPJAboutBoxDlg-ButtonHeight.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
**Class:** [_TPJAboutBoxDlg_](./TPJAboutBoxDlg.md)
88

9+
**Applies to:** ~>3.6
10+
911
```pascal
1012
property ButtonHeight: Integer;
1113
```

Docs/AboutBox/API/TPJAboutBoxDlg-ButtonKind.md renamed to AboutBox/3.6/API/TPJAboutBoxDlg-ButtonKind.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
**Class:** [_TPJAboutBoxDlg_](./TPJAboutBoxDlg.md)
88

9+
**Applies to:** ~>3.6
10+
911
```pascal
1012
property ButtonKind: TPJAboutBtnKinds;
1113
@@ -19,7 +21,7 @@ type TPJAboutBtnKinds = (
1921
The About box contains one button which is used to close the dialog box. The button can display different text to indicate its use. The _ButtonKind_ property is used to determine which text to display. Valid values for the property and their meanings are as follows:
2022

2123
| Value | Text |
22-
|-----------|----------|
24+
|:----------|:---------|
2325
| _abkOK_ | `OK` |
2426
| _abkDone_ | `Done` |
2527
| _abkClose_ | `Close` |

Docs/AboutBox/API/TPJAboutBoxDlg-ButtonPlacing.md renamed to AboutBox/3.6/API/TPJAboutBoxDlg-ButtonPlacing.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
**Class:** [_TPJAboutBoxDlg_](./TPJAboutBoxDlg.md)
88

9+
**Applies to:** ~>3.6
10+
911
```pascal
1012
property ButtonPlacing: TPJAboutBtnPlacing;
1113
@@ -17,7 +19,7 @@ type TPJAboutBtnPlacing = (abpLeft, abpCentre, abpRight);
1719
The About box contains one button which is used to close the dialog box. The button is positioned at the bottom of the dialog box, but can be aligned left, centre or right. The _ButtonPlacing_ property is used to determine which position the button occupies. Valid values for the property and their meanings are as follows:
1820

1921
| Value | Meaning |
20-
|-----------|-------------|
22+
|:----------|:------------|
2123
| _abpLeft_ | Display the button at the bottom left of the dialog box. |
2224
| _abpCentre_ | Display the button at the bottom centre of the dialog box. |
2325
| _abpRight_ | Display the button at the bottom right of the dialog box. |

Docs/AboutBox/API/TPJAboutBoxDlg-ButtonWidth.md renamed to AboutBox/3.6/API/TPJAboutBoxDlg-ButtonWidth.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
**Class:** [_TPJAboutBoxDlg_](./TPJAboutBoxDlg.md)
88

9+
**Applies to:** ~>3.6
10+
911
```pascal
1012
property ButtonWidth: Integer;
1113
```

Docs/AboutBox/API/TPJAboutBoxDlg-CentreDlg.md renamed to AboutBox/3.6/API/TPJAboutBoxDlg-CentreDlg.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
**Class:** [_TPJAboutBoxDlg_](./TPJAboutBoxDlg.md)
88

9+
**Applies to:** ~>3.6
10+
911
```pascal
1012
property CentreDlg: Boolean;
1113
```

Docs/AboutBox/API/TPJAboutBoxDlg-Copyright.md renamed to AboutBox/3.6/API/TPJAboutBoxDlg-Copyright.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
**Class:** [_TPJAboutBoxDlg_](./TPJAboutBoxDlg.md)
88

9+
**Applies to:** ~>3.6
10+
911
```pascal
1012
property Copyright: string;
1113
```

Docs/AboutBox/API/TPJAboutBoxDlg-DlgLeft.md renamed to AboutBox/3.6/API/TPJAboutBoxDlg-DlgLeft.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
**Class:** [_TPJAboutBoxDlg_](./TPJAboutBoxDlg.md)
88

9+
**Applies to:** ~>3.6
10+
911
```pascal
1012
property DlgLeft: Integer;
1113
```

Docs/AboutBox/API/TPJAboutBoxDlg-DlgTop.md renamed to AboutBox/3.6/API/TPJAboutBoxDlg-DlgTop.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
**Class:** [_TPJAboutBoxDlg_](./TPJAboutBoxDlg.md)
88

9+
**Applies to:** ~>3.6
10+
911
```pascal
1012
property DlgTop: Integer;
1113
```

Docs/AboutBox/API/TPJAboutBoxDlg-Execute.md renamed to AboutBox/3.6/API/TPJAboutBoxDlg-Execute.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
**Class:** [_TPJAboutBoxDlg_](./TPJAboutBoxDlg.md)
88

9+
**Applies to:** ~>3.6
10+
911
```pascal
1012
procedure Execute;
1113
```

Docs/AboutBox/API/TPJAboutBoxDlg-Font.md renamed to AboutBox/3.6/API/TPJAboutBoxDlg-Font.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
**Class:** [_TPJAboutBoxDlg_](./TPJAboutBoxDlg.md)
88

9+
**Applies to:** ~>3.6
10+
911
```pascal
1012
property Font: TFont;
1113
```

Docs/AboutBox/API/TPJAboutBoxDlg-HelpContext.md renamed to AboutBox/3.6/API/TPJAboutBoxDlg-HelpContext.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
**Class:** [_TPJAboutBoxDlg_](./TPJAboutBoxDlg.md)
88

9+
**Applies to:** ~>3.6
10+
911
```pascal
1012
property HelpContext: THelpContext;
1113

Docs/AboutBox/API/TPJAboutBoxDlg-Notes.md renamed to AboutBox/3.6/API/TPJAboutBoxDlg-Notes.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
**Class:** [_TPJAboutBoxDlg_](./TPJAboutBoxDlg.md)
88

9+
**Applies to:** ~>3.6
10+
911
```pascal
1012
property Notes: string;
1113
```

Docs/AboutBox/API/TPJAboutBoxDlg-Position.md renamed to AboutBox/3.6/API/TPJAboutBoxDlg-Position.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
**Class:** [_TPJAboutBoxDlg_](./TPJAboutBoxDlg.md)
88

9+
**Applies to:** ~>3.6
10+
911
```pascal
1012
property Position: TPJAboutPosition;
1113
@@ -17,7 +19,7 @@ type TPJAboutPosition = (abpScreen, abpDesktop, abpOwner);
1719
The _Position_ property determines whether the [_CentreDlg_](./TPJAboutBoxDlg-CentreDlg.md), [_DlgTop_](./TPJAboutBoxDlg-DlgTop.md) and [_DlgLeft_](./TPJAboutBoxDlg-DlgLeft.md) properties act relative to screen, desktop or owning form. Valid values for the property and their meanings are as follows:
1820

1921
| Value | Text |
20-
|-----------|----------|
22+
|:----------|:---------|
2123
| _abpScreen_ | The dialog is positioned relative to the screen. |
2224
| _abpDesktop_ | The dialog is positioned relative to the desktop's work area (this takes into account the taskbar and toolbars). |
2325
| _abpOwner_ | The dialog is positioned relative to its owner - usually the form on which the component is dropped. If the component has no owner, or the owner is not a window control, then this setting has no effect and positioning is per _abpScreen_. |

Docs/AboutBox/API/TPJAboutBoxDlg-ProgramName.md renamed to AboutBox/3.6/API/TPJAboutBoxDlg-ProgramName.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
**Class:** [_TPJAboutBoxDlg_](./TPJAboutBoxDlg.md)
88

9+
**Applies to:** ~>3.6
10+
911
```pascal
1012
property ProgramName: string;
1113
```

Docs/AboutBox/API/TPJAboutBoxDlg-Title.md renamed to AboutBox/3.6/API/TPJAboutBoxDlg-Title.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
**Class:** [_TPJAboutBoxDlg_](./TPJAboutBoxDlg.md)
88

9+
**Applies to:** ~>3.6
10+
911
```pascal
1012
property Title: string;
1113
```

Docs/AboutBox/API/TPJAboutBoxDlg-UseOSStdFonts.md renamed to AboutBox/3.6/API/TPJAboutBoxDlg-UseOSStdFonts.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
**Class:** [_TPJAboutBoxDlg_](./TPJAboutBoxDlg.md)
88

9+
**Applies to:** ~>3.6
10+
911
```pascal
1012
property UseOSStdFonts: Boolean;
1113
```

Docs/AboutBox/API/TPJAboutBoxDlg-UseOwnerAsParent.md renamed to AboutBox/3.6/API/TPJAboutBoxDlg-UseOwnerAsParent.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
**Class:** [_TPJAboutBoxDlg_](./TPJAboutBoxDlg.md)
88

9+
**Applies to:** ~>3.6
10+
911
```pascal
1012
property UseOwnerAsParent: Boolean;
1113
```

Docs/AboutBox/API/TPJAboutBoxDlg-Version.md renamed to AboutBox/3.6/API/TPJAboutBoxDlg-Version.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
**Class:** [_TPJAboutBoxDlg_](./TPJAboutBoxDlg.md)
88

9+
**Applies to:** ~>3.6
10+
911
```pascal
1012
property Version: string;
1113
```
@@ -16,4 +18,4 @@ The _Version_ property defines the version number (or other text) to appear on t
1618

1719
The default value of this property is an empty string, which displays nothing.
1820

19-
Note: If the [_VersionInfo_](./TPJAboutBoxDlg-VersionInfo.md) property is not nil then _Version_ is ignored.
21+
**Note**: If the [_VersionInfo_](./TPJAboutBoxDlg-VersionInfo.md) property is not nil then _Version_ is ignored.

Docs/AboutBox/API/TPJAboutBoxDlg-VersionInfo.md renamed to AboutBox/3.6/API/TPJAboutBoxDlg-VersionInfo.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
**Class:** [_TPJAboutBoxDlg_](./TPJAboutBoxDlg.md)
88

9+
**Applies to:** ~>3.6
10+
911
```pascal
1012
property VersionInfo: TPJVersionInfo;
1113
```
@@ -14,12 +16,12 @@ property VersionInfo: TPJVersionInfo;
1416

1517
This property allows information from a string information block in a program file's _VERSIONINFO_ resource to be displayed in the dialog box.
1618

17-
To enable this to happen a [_TPJVersionInfo_](../../VerInfo/API/TPJVersionInfo.md) component must be placed on the form and this property must reference it. The _TPJVersionInfo_ component's [_FileName_](../../VerInfo/API/TPJVersionInfo-FileName.md) property must be set to the name of the executable file from which version information is to be extracted, or set to '' to get the version information of the parent executable file.
19+
To enable this to happen a [_TPJVersionInfo_](../../../VerInfo/3/API/TPJVersionInfo.md) component must be placed on the form and this property must reference it. The _TPJVersionInfo_ component's [_FileName_](../../../VerInfo/3/API/TPJVersionInfo-FileName.md) property must be set to the name of the executable file from which version information is to be extracted, or set to '' to get the version information of the parent executable file.
1820

1921
The following table shows which version information string values are used, along with the properties whose values they replace:
2022

2123
| _VERSIONINFO_ string | Replaces property |
22-
|-----------------------|-------------------|
24+
|:----------------------|:------------------|
2325
| ProductName | [_ProgramName_](./TPJAboutBoxDlg-ProgramName.md) |
2426
| ProductVersion | [_Version_](./TPJAboutBoxDlg-Version.md) |
2527
| LegalCopyright | [_Copyright_](./TPJAboutBoxDlg-Copyright.md) |

Docs/AboutBox/API/TPJAboutBoxDlg.md renamed to AboutBox/3.6/API/TPJAboutBoxDlg.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44

55
**Unit:** _PJAbout_.
66

7+
**Applies to:** ~>3.6
8+
79
This non-visual component encapsulates an About Box in a non-visual component. It is displayed by calling its [_Execute_](./TPJAboutBoxDlg-Execute.md) method. It has string properties to display five different pieces of information in the about box. They are: [_Copyright_](./TPJAboutBoxDlg-Copyright.md), [_Notes_](./TPJAboutBoxDlg-Notes.md), [_ProgramName_](./TPJAboutBoxDlg-ProgramName.md), [_Title_](./TPJAboutBoxDlg-Title.md) and [_Version_](./TPJAboutBoxDlg-Version.md).
810

9-
Alternatively, the about box can display information from a _VERSIONINFO_ resource included in a program file. This is achieved by setting the [_VersionInfo_](./TPJAboutBoxDlg-VersionInfo.md) property to reference a [_TPJVersionInfo_](../../VerInfo/API/TPJVersionInfo.md) component which extracts the required version information from an executable file.
11+
Alternatively, the about box can display information from a _VERSIONINFO_ resource included in a program file. This is achieved by setting the [_VersionInfo_](./TPJAboutBoxDlg-VersionInfo.md) property to reference a [_TPJVersionInfo_](../../../VerInfo/3/API/TPJVersionInfo.md) component which extracts the required version information from an executable file.
1012

1113
The application's icon is displayed in the dialog box. This is the icon specified by the _Icon_ property of the _TApplication_ object. If no icon has been specified for the application then default Delphi icon is used.
1214

@@ -17,13 +19,13 @@ The [_HelpContext_](./TPJAboutBoxDlg-HelpContext.md) property allows Windows Hel
1719
## Methods
1820

1921
| Method | Description |
20-
|--------|-------------|
22+
|:-------|:------------|
2123
| [_Execute_](./TPJAboutBoxDlg-Execute.md) | Displays the about box. |
2224

2325
## Properties
2426

2527
| Property | Description |
26-
|----------|-------------|
28+
|:---------|:------------|
2729
| [_ButtonGlyph_](./TPJAboutBoxDlg-ButtonGlyph.md) | Determines which, if any, glyph is displayed on the dialog's close button. |
2830
| [_ButtonHeight_](./TPJAboutBoxDlg-ButtonHeight.md) | Specifies the height of the dialog's close button. |
2931
| [_ButtonKind_](./TPJAboutBoxDlg-ButtonKind.md) | Determines the text displayed on the dialog's close button. |
@@ -42,7 +44,7 @@ The [_HelpContext_](./TPJAboutBoxDlg-HelpContext.md) property allows Windows Hel
4244
| [_UseOSStdFonts_](./TPJAboutBoxDlg-UseOSStdFonts.md) | Specifies whether the dialog box should use the system's default font. |
4345
| [_UseOwnerAsParent_](./TPJAboutBoxDlg-UseOwnerAsParent.md) | Determines if the dialog box should to be forced to be a child window of any owning control. |
4446
| [_Version_](./TPJAboutBoxDlg-Version.md) | The version number information to be displayed in the dialog box. |
45-
| [_VersionInfo_](./TPJAboutBoxDlg-VersionInfo.md) | Reference to any [_TPJVersionInfo_](../../VerInfo/API/TPJVersionInfo.md) component that provides the text displayed in the about box. |
47+
| [_VersionInfo_](./TPJAboutBoxDlg-VersionInfo.md) | Reference to any [_TPJVersionInfo_](../../../VerInfo/3/API/TPJVersionInfo.md) component that provides the text displayed in the about box. |
4648

4749
## Events
4850

AboutBox/3.6/Overview.md

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# [About Box Component](../index.md) Overview
2+
3+
**Applies to:** ~>3.6
4+
5+
## Description
6+
7+
> This page provides an overview of the features of the About Box Component. If you are looking for information on programming with the component please see the [Programmers' Guide](./API.md).
8+
9+
This project provides a single non-visual component, [_TPJAboutBoxDlg_](./API/TPJAboutBoxDlg.md) that encapsulates an "About" dialogue box.
10+
11+
When displayed the about box appears like this:
12+
13+
![DelphiDabbler About Box component screenshot](./images/aboutbox.png)
14+
15+
-- _screen shot taken on Windows Vista_
16+
17+
The text displayed in the about box can be set using properties exposed by the component, or can be extracted from version information using a linked DelphiDabbler _Version Information Component_.
18+
19+
The dialogue's position can be specified relative to the screen, desktop or parent application. There is a single close button whose appearance and position can be customised. The about box also displays the program's icon. Finally, the dialogue box's font can be altered.
20+
21+
### Required component
22+
23+
In order to compile, _TPJAboutBoxDlg_ requires that a DelphiDabbler [_Version Information Component_](../../VerInfo/index.md) is installed.
24+
25+
### Demo program
26+
27+
A demo program is available that can be used to exercise the component.
28+
29+
## Compatibility
30+
31+
The component is believed to compile with any Delphi compiler from Delphi 2 through to 11.3. It is compatible with 32 bit and 64 bit Windows targets.
32+
33+
This is a VCL component and so is not compatible with the FireMonkey framework.
34+
35+
The component not suitable for compilation on platoforms other than Windows.
36+
37+
## Links
38+
39+
* [Programmers' Guide](./API.md).
File renamed without changes.

AboutBox/index.md

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# About Box Component Documentation
2+
3+
## Introduction
4+
5+
This is the home page for the on-line documentation of the DelphiDabbler [About Box Component](https://delphidabbler.com/software/aboutbox) project.
6+
7+
This project implements a single non-visual component that encapsulates an "About" dialogue box.
8+
9+
The unit is:
10+
11+
* Windows only
12+
* 32 & 64 bit compatible
13+
* VCL compatible
14+
* **Not** FireMonkey compatible
15+
16+
## Supported Versions
17+
18+
This documentation applies to About Box Component ~>3.6.
19+
20+
> Versions 1, 2 and 3.0.0 to 3.5.1 are no longer supported and there is no documentation available.
21+
22+
## Contents
23+
24+
* [Overview](./3.6/Overview.md)
25+
* [Programmer's Guide](./3.6/API.md)
26+
27+
## Links
28+
29+
* Back to [Documentation Home Page](../index.md)
30+
* [About Box Component Web Page](https://delphidabbler.com/software/aboutbox)
31+
* [Releases](https://github.com/ddablib/aboutbox/releases)
32+
* [Source Code](https://github.com/ddablib/aboutbox)

0 commit comments

Comments
 (0)