Reference Codebot.Frame.Packages.pas
Part of the Codebot Frame Design package
The Codebot.Frame.Packages unit creates or changes the package of a converted control, and opens and installs it in the IDE.
CreatePackageFile writes a new run and design time package that requires the LCL, named after its file. WriteTextFile writes the unit of the control. AddUnitToPackage adds the unit to the package as a unit with a Register procedure, and AddRequiredPackages adds the installed packages that hold the units the control uses. Package files in both the older format, which numbers its items, and the newer format are supported.
Since an existing package is changed on disk, PackageIsSaved first makes sure the package has no unsaved changes in the IDE. OpenPackage then opens the package, or loads it again from its file if it is already open, and InstallPackage installs it. An IDE built from dynamic packages loads it without being rebuilt. Each of these routines tells the user when it fails.
Items 7 items
| Name | Kind | Line |
|---|---|---|
| AddRequiredPackages | function | 43 |
| AddUnitToPackage | function | 35 |
| CreatePackageFile | function | 26 |
| InstallPackage | function | 46 |
| OpenPackage | function | 39 |
| PackageIsSaved | function | 29 |
| WriteTextFile | function | 32 |