Developer's Guide :: Layouts

From Delphi for PHP Documentation Wiki

Jump to: navigation, search

Layouts are a way to specify the ordering of components inside the form or inside controls, like the Panel. By using a Layout, the layout is responsible to render your components in the right position according to the type of layout. There are several types of layouts:

Contents

[edit] ABS_XY_LAYOUT

This type of layout allows you to place components on any location on your browser, it uses absolute positioning styles and it's well suited for web application interfaces, but not for website type layouts.

[edit] XY_LAYOUT

This type of layout provides the same positioning than ABS_XY_LAYOUT but it's generated using tables, it works well with web application interfaces and website type layouts, but it generates much code.

[edit] FLOW_LAYOUT

This could be also named NO_LAYOUT, as it renders the controls inside the component in the same way the browser does, that is, without any positioning.

[edit] GRIDBAG_LAYOUT

This layout allows you to create a grid where you can place components inside each cell, or to cover several cells at a time. It uses the Cols and Rows properties of the layout to generate the grid.

[edit] ROW_LAYOUT

The same as the GRIDBAG_LAYOUT, but only 1 row.

[edit] COL_LAYOUT

The same as the GRIDBAG_LAYOUT, but only 1 column.

By modifying the VCL you can add your own layout types, and you can even design plugins for Delphi for PHP to make the designer react to your layout type and order components accordingly.

Personal tools