You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
Copy file name to clipboardExpand all lines: AboutBox/3.6/API/TPJAboutBoxDlg-ButtonGlyph.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@
6
6
7
7
**Class:**[_TPJAboutBoxDlg_](./TPJAboutBoxDlg.md)
8
8
9
+
**Applies to:**~>3.6
10
+
9
11
```pascal
10
12
property ButtonGlyph: TPJAboutBtnGlyphs;
11
13
@@ -19,7 +21,7 @@ type TPJAboutBtnGlyphs = (
19
21
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:
20
22
21
23
| Value | Meaning |
22
-
|-----------|-------------|
24
+
|:----------|:------------|
23
25
|_abgOK_| A green check mark appears on the button face. |
24
26
|_abgCancel_| A red cross appears on the button face. |
25
27
|_abgIgnore_| A green man walking away appears on the button face. |
Copy file name to clipboardExpand all lines: AboutBox/3.6/API/TPJAboutBoxDlg-ButtonKind.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@
6
6
7
7
**Class:**[_TPJAboutBoxDlg_](./TPJAboutBoxDlg.md)
8
8
9
+
**Applies to:**~>3.6
10
+
9
11
```pascal
10
12
property ButtonKind: TPJAboutBtnKinds;
11
13
@@ -19,7 +21,7 @@ type TPJAboutBtnKinds = (
19
21
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:
Copy file name to clipboardExpand all lines: AboutBox/3.6/API/TPJAboutBoxDlg-ButtonPlacing.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@
6
6
7
7
**Class:**[_TPJAboutBoxDlg_](./TPJAboutBoxDlg.md)
8
8
9
+
**Applies to:**~>3.6
10
+
9
11
```pascal
10
12
property ButtonPlacing: TPJAboutBtnPlacing;
11
13
@@ -17,7 +19,7 @@ type TPJAboutBtnPlacing = (abpLeft, abpCentre, abpRight);
17
19
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:
18
20
19
21
| Value | Meaning |
20
-
|-----------|-------------|
22
+
|:----------|:------------|
21
23
|_abpLeft_| Display the button at the bottom left of the dialog box. |
22
24
|_abpCentre_| Display the button at the bottom centre of the dialog box. |
23
25
|_abpRight_| Display the button at the bottom right of the dialog box. |
Copy file name to clipboardExpand all lines: AboutBox/3.6/API/TPJAboutBoxDlg-Position.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@
6
6
7
7
**Class:**[_TPJAboutBoxDlg_](./TPJAboutBoxDlg.md)
8
8
9
+
**Applies to:**~>3.6
10
+
9
11
```pascal
10
12
property Position: TPJAboutPosition;
11
13
@@ -17,7 +19,7 @@ type TPJAboutPosition = (abpScreen, abpDesktop, abpOwner);
17
19
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:
18
20
19
21
| Value | Text |
20
-
|-----------|----------|
22
+
|:----------|:---------|
21
23
|_abpScreen_| The dialog is positioned relative to the screen. |
22
24
|_abpDesktop_| The dialog is positioned relative to the desktop's work area (this takes into account the taskbar and toolbars). |
23
25
|_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_. |
This property allows information from a string information block in a program file's _VERSIONINFO_ resource to be displayed in the dialog box.
16
18
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.
18
20
19
21
The following table shows which version information string values are used, along with the properties whose values they replace:
Copy file name to clipboardExpand all lines: AboutBox/3.6/API/TPJAboutBoxDlg.md
+6-4
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,11 @@
4
4
5
5
**Unit:**_PJAbout_.
6
6
7
+
**Applies to:**~>3.6
8
+
7
9
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).
8
10
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.
10
12
11
13
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.
12
14
@@ -17,13 +19,13 @@ The [_HelpContext_](./TPJAboutBoxDlg-HelpContext.md) property allows Windows Hel
17
19
## Methods
18
20
19
21
| Method | Description |
20
-
|--------|-------------|
22
+
|:-------|:------------|
21
23
|[_Execute_](./TPJAboutBoxDlg-Execute.md)| Displays the about box. |
22
24
23
25
## Properties
24
26
25
27
| Property | Description |
26
-
|----------|-------------|
28
+
|:---------|:------------|
27
29
|[_ButtonGlyph_](./TPJAboutBoxDlg-ButtonGlyph.md)| Determines which, if any, glyph is displayed on the dialog's close button. |
28
30
|[_ButtonHeight_](./TPJAboutBoxDlg-ButtonHeight.md)| Specifies the height of the dialog's close button. |
29
31
|[_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
42
44
|[_UseOSStdFonts_](./TPJAboutBoxDlg-UseOSStdFonts.md)| Specifies whether the dialog box should use the system's default font. |
43
45
|[_UseOwnerAsParent_](./TPJAboutBoxDlg-UseOwnerAsParent.md)| Determines if the dialog box should to be forced to be a child window of any owning control. |
44
46
|[_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. |
> 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
+

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.
0 commit comments