Saving Custom Components

From Delphi for PHP Documentation Wiki

Jump to: navigation, search

Summary: Describes how to install custom components onto the Tool Palette.


After you have created a custom component, save the component files to the Delphi for PHP   vcl folder.

Note:

Your custom components must be inside the Delphi for PHP  vcl folder for the IDE to find them. Create a subfolder for your custom components in the  vcl folder. Putting your components into subfolders enables you to build your own libraries without affecting the VCL code base and makes deployment easier.

To save custom components

  1. Select the package file (<default component name>.package.php) in Delphi for PHP and choose File Image:pathPDF.jpg Save As.
  2. Navigate to the <Delphi for PHP>/vcl folder in the Save As dialog box.
  3. Click the New Folder icon in the Save As dialog box and create a subfolder for your component inside the vcl folder (for example <Delphi for PHP>/vcl/MyCustomComponents).
  4. Go into the new folder and save the package file with a new name (for example, MyCustomComponents.package.php).
  5. Select the component file (<default component name>.inc.php) and save it to the same subfolder with a new name (for example, MyMenu.inc.php).
  6. Save any additional files for the component to the same library subfolder as the first component file, renaming them as you do.

Creating Custom Components

Installing Custom Components

Adding an Image Icon to a Component

Setting Component Properties

Personal tools