Tool Palette

From Delphi for PHP Documentation Wiki

Jump to: navigation, search

View Image:pathPDF.jpg Tool Palette

The "Tool Palette" contains default VCL for PHP visual and non-visual components you can add to a form. You can also create custom components based on the VCL for PHP components and install them on the palette for future use in your application development. To use a component from the palette, expand the palette page containing the component you want to use, then double-click the component to add it to your form. You can also click on a component and then click on the form if you want to place a component on an specific location or inside another component. Finally, if you press and hold the Shift key while clicking the component, the selection won't be reset after create the component on the form, so you can create more just by clicking. To reset the selection, click the arrow button at the top.

The Tools Palette also provides a special category, called HTML elements, valid on HTML files and Templated Forms, the Palette adapts the items available depending on the context the editor is on:

  • If the user is editing an HTML file, the palette will show only HTML elements
  • If the user is editing a VCL form, the palette will show only PHP components
  • If the user is editing a Templated Form, the palette will show PHP components and the HTML elements

Filtering

To search for a component, you can scroll down the tool palette or you can press the filter button at the top, and then start typing the name of it. This will perform a filter on the components based on the characters you type, so you will see only the components that match. The search is partial, that is, typing 'db' will match 'DBGrid' and also 'SpeedButton'.

Image:tool_palette.png

There are three ways to add components to a designer:

  • Double-clicking on the component you want to insert in the "Tool Palette".
  • Holding down the "Shift" key and "clicking" with left button above component in the "Tool Palette". Then, holding down the "Shift" key and "clicking" with left button in the location you want at design time. Repeating the last step as much as you want to add components.
  • Dragging the component to the designer.
Personal tools
In other languages