This page installs Bold in the Delphi IDE or in Lazarus. The quickest route in Delphi is a package manager; the manual route builds the design-time package from source.
--8<-- "README.md:platforms"
- Delphi: one package folder per compiler.
packages\Delphi13serves 13.0 and 13.1 (Community Edition included),packages\Delphi12.3serves every 12.x, andpackages\Delphi11.3is for 11.3. - Lazarus: Lazarus 4 with Free Pascal 3.2.2 or later. SQL databases are reached through Zeos 8.0.
- A database: SQLite needs no server and is the easiest start. The test suite also runs on SQL Server and PostgreSQL; Firebird, Oracle and MariaDB/MySQL have SQL dialects too, but less testing. See Persistence.
- Git, to clone the repository (or download the source as a ZIP from GitHub).
Both package managers download Bold's source, build the design-time package dclBold for your Delphi version and
register it, so the manual steps below are not needed.
-
Get Smart Setup (free) from doc.tmssoftware.com/smartsetup/download: unzip the portable
tmssmartsetup.zipor run the installer. Both give youtms.exeand the GUItmsgui.exe. -
Run:
tms install bero.boldfordelphi
Smart Setup clones the latest release tag, builds
dclBoldfor every installed Delphi version it supports (11, 12 and 13, for the 32-bit IDE), registers the package in the IDE and puts Bold's compiled units on the library path (the sources go on the browsing path).tms updatemoves to newer releases;tms install bero.boldfordelphi:26.9.1pins a version.
-
Get DPM (free) from github.com/DelphiPackageManager/DPM/releases. The installer adds
dpm.exeto the PATH and an IDE plugin. -
DPM installs per project. In the IDE, right-click the project in the Projects pane, choose Manage DPM Packages and install
bero.BoldForDelphi. From the command line:dpm install bero.BoldForDelphi C:\path\to\YourProject.dproj -compiler=13.0 -platforms=Win32
DPM builds the design package into its package cache once, loads it in the IDE while the project is open, and adds Bold's compiled units to that project's search path (
$(DPMSearch)). Nothing is registered IDE-wide. The packages are Win32 for Delphi 11, and Win32 and Win64 for Delphi 12 and 13. They are published on the public feed at delphi.dev, so no source configuration is needed.
git clone https://github.com/bero/BoldForDelphi.gitOr download the source as a ZIP from GitHub and extract it, for example to C:\BoldForDelphi.
-
Open the package project for your Delphi version with File → Open Project:
Delphi version Package project Delphi 11.3 Alexandria packages\Delphi11.3\dclBold.dprojDelphi 12.3 Athens packages\Delphi12.3\dclBold.dprojDelphi 13 Florence packages\Delphi13\dclBold.dproj -
Build it with Project → Build (Shift+F9). The BPL goes to
packages\Bin(Win32) orpackages\Bin64(Win64, for the 64-bit IDE of Delphi 12.3 and 13). -
In the Projects pane, right-click the package and choose Install.
-
Check Component → Install Packages...: "Bold for Delphi" is in the list.
Each GitHub release also has the three Win32 BPLs
(dclBold280.bpl for 11.3, dclBold290.bpl for 12.x, dclBold370.bpl for 13). To use one, install it with
Component → Install Packages... → Add. You still need the source from Step 1, because your projects compile
Bold's units.
A Bold application compiles Bold's units from source, so the project's search path must name Bold's source folders
(Project → Options → Building → Delphi Compiler → Search path), including Source\Common\Include for
bold.inc. The easiest way is to copy the search path of an example project, such as
examples\Tutorial\Step1_NewProject\Step1.dproj, and adjust its relative paths to where your project is. A package
manager does this for you: Smart Setup through the library path, DPM through the project's search path.
- Copy the folder of the closest supported version (for example
packages\Delphi13for Delphi 14). - Name the copy after the new version (for example
packages\Delphi14). - Build and install it. The package uses
LIBSUFFIX AUTO, so the BPL is named after the compiler (dclBold380.bplfor Delphi 14) and no version setting needs editing.
!!! tip When it works, please send a pull request that adds the new package folder to the repository.
Bold's Lazarus packages are in packages\Lazarus; its
README says what each package
holds. They need Lazarus 4 with Free Pascal 3.2.2 or later. The CI builds them with Lazarus 4.4 on Linux, and the
steps below install them in Lazarus 4.8 on 64-bit Windows. The design-time package puts Bold's non-visual components
on the palette and has the OCL editor. Bold's visual controls are VCL only; an LCL application shows Bold objects
through TBoldDataSet and the LCL's data-aware controls. Models are edited with the standalone model editor
(Tools/ModelEditor, which has an LCL client) or in Delphi, and loaded from their .bld file.
-
Install Lazarus. On Windows, the installer from lazarus-ide.org includes Free Pascal and the Lazarus source, which the rebuild in step 5 compiles. With winget:
winget install --id Lazarus.Lazarus --exact
Add
--version 4.4for the version the CI uses. On Debian and Ubuntu, installlazarus-srcas well: the design-time package needs the source ofBuildIntf, which those distributions ship as source only. -
English menus (optional). Lazarus starts in the language of the operating system. In Tools → Options → Environment → General → Language, choose English [en], not Automatic (or English), which follows the system, and restart Lazarus. The steps below use the English names.
-
Get the source, as in Step 1.
-
Open the design-time package. Choose Package → Open Package File (.lpk) ... and open
packages\Lazarus\dclBold.lpk. Lazarus finds the two runtime packages it requires,Bold.lpkandBoldLCL.lpk, in the same folder. -
Install it. In the package window, choose Use → Install. Lazarus asks three questions:
- Automatically installed packages: installing
dclBoldinstallsBoldandBoldLCLtoo. Choose OK. - Suspicious include path: "The package Bold adds the path
..\..\Source\Common\Includeto the include path of the IDE". Choose Continue, or Continue and do not ask again. The path is intended: a project that requires Bold findsbold.incthrough it, and the folder holds only Bold's include files. Lazarus asks this about every package that passes an include path on. - Rebuild Lazarus?: choose Yes. Lazarus compiles itself with the three packages and restarts.
- Automatically installed packages: installing
-
Check the palette. It has three new pages: Bold Handles (
TBoldModel,TBoldSystemHandle, the list and expression handles and the others), Bold Persistence (TBoldPersistenceHandleDB,TBoldPersistenceHandleFileXML) and Bold Misc (TBoldDataSetamong others). The "..." button of anExpressionproperty in the Object Inspector opens the OCL editor.
A project requires Bold, or BoldLCL for an LCL application, and never dclBold, so it links no registration
code. The Zeos database adapter has its own design-time package, dclBoldZeos.lpk, which is installed the same way
once Lazarus knows Zeos's packages (see the
Lazarus README).
The command-line builds in the repository (the build.sh scripts of the Free Pascal tests, of the Lazarus packages'
checks and of the Invoicing examples) also run in Git Bash on Windows. They find Lazarus in C:\lazarus, or in the
folder that LAZARUS_DIR names.
After installing in Delphi, the Tool Palette has these pages:
- Bold Handles:
TBoldModel, TBoldSystemHandle,TBoldSystemTypeInfoHandle, TBoldListHandle, TBoldExpressionHandle and more - Bold Controls:
TBoldGrid,TBoldEdit,TBoldComboBox,TBoldNavigatorand more (VCL) - Bold Persistence:
TBoldPersistenceHandleDB,TBoldDatabaseAdapterFireDAC,TBoldPersistenceHandleFileXML - Bold Misc:
TBoldDataSetand other helpers
Bold's actions (TBoldActivateSystemAction, TBoldUpdateDBAction, TBoldCreateDatabaseAction and others) are not
on the palette: add them in the action list editor with New Standard Action, category Bold Actions.
Bold keeps supporting VCL applications, including applications written for an older Bold. To move one to a newer release, install the new design-time package in place of the old one, check the project's search path (Step 3) and build. Most applications need no other change. The lists below name the changes that can need an edit in the application, newest first. The changelog marks each new one Action needed.
-
Link the VCL environment. The Bold core no longer links the VCL. Bold's VCL controls link the VCL environment as before, and the IDE adds
BoldEnvironmentVCLto the uses clause when it saves a VCL form, frame or data module that holds a non-visual Bold component. AddBoldEnvironmentVCLto one uses clause yourself, for example the project file's, when:- the application has no Bold-aware control and its forms are not saved again in the IDE, or
- it queues display work through its own
TBoldQueueabledescendants or throughAddToPreDisplayQueueandAddToPostDisplayQueue, and links none of the units that import the VCL environment.
Without it, the application runs on the freestanding environment: Bold's questions to the user (deleting tables when the database is created, the database validator) raise an error that names
BoldEnvironmentVCL, and informational messages go to the log. -
TBoldPersistenceProgressNotifiermoved to the new unitBoldPersistenceProgressNotifierinSource\Persistence\UtilsGUI. Add that folder to the search path. The IDE adds the unit to the uses clause when the form is saved; forms load unchanged, because the class name is the same. -
BoldInternalVCLConfigurationis renamedBoldInternalFrameworkConfiguration.
-
Delphi 11.3 or later. There are packages for Delphi 11.3, 12.x and 13 (see Requirements).
-
The search path. The source moved into subfolders, and projects name them with relative paths instead of environment variables. Replace the Bold part of the search path as Step 3 describes.
-
Database adapters. The ADO, BDE, DBExpress, Advantage, IBX and SQLDirect adapters are in
Source\Deprecated. They are not in the packages and are not maintained. Move the application to a supported adapter, such as FireDAC (see Adapters). -
CLX and C++Builder support is removed.
-
Removed units.
BoldMath: itsFloor,MaxIntValue,MaxValue,MinValueandMinIntValueare inSystem.Math.BoldVersionInfo: the version is in the package projects only. -
Removed
BoldUtilsroutines:Removed Use instead CharInSet,DirectoryExists,ForceDirectoriesThe routines with the same names in System.SysUtilsBoldTrimTrimBooleanToString(B)BoolToStr(B, True)BoldIsPrefix(S, Prefix)StartsStr(Prefix, S)fromSystem.StrUtils; both are case-sensitiveBoldParseFormattedDate,BoldParseFormattedDateList,BoldSeparatedAppend,BoldStrEqual,BoldStrStringEqual,CapitalisedToSpaced,SpacedToCapitalised,DateToStrFmt,EnsureTrailing,EnumToStrings,FileTimeToDateTime,GetComputerNameStr,IsLocalMachineRemoved because Bold did not use them. An application that calls one keeps its own copy, taken from the earlier source
The project's search path lacks Source\Common\Include. See
Step 3.
- Check that the package is installed and enabled in Component → Install Packages....
- Check that the packages it requires are loaded.
- Make sure you opened the package for your Delphi version.
- Make sure no older Bold package is installed.