Download Now
Forums

    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

    NameKindLine
    AddRequiredPackagesfunction43
    AddUnitToPackagefunction35
    CreatePackageFilefunction26
    InstallPackagefunction46
    OpenPackagefunction39
    PackageIsSavedfunction29
    WriteTextFilefunction32