How to Import Form Layout
- 2 minutes to read
The Layout Control allows you to import a form layout at design-time. To do this, click Import… within the layout control’s context menu to open the Import dialog.
Select the import source from the drop-down list and choose a form or a container control. You can adjust the following options to increase application rendering speed:
Option | Description |
---|---|
Import standalone labels as label items | Converts label controls (TcxCustomLabel, TCustomLabel, and TCustomStaticText descendants) that have no associated control to layout labels. |
Import check boxes as check box items | Converts check box controls (TCheckBox and TcxCheckBox) to layout check boxes. |
Import radio buttons as radio button items | Converts radio button controls (TRadioButton and TcxRadioButton) to layout radio buttons. |
Import page controls as tabbed groups | Converts page controls (TcxPageControl, TPageControl, and their descendants) to tabbed groups. |
Link labels to controls within the range | Associates each standalone label to a non-container control placed within the specified range to the right and below a label. |
When you completed the configuration stage, click Import to proceed. The import operation does the following:
Converts container controls (TcxCustomGroupBox, TCustomGroupBox, and TCustomPanel descendants) to layout groups.
Converts bevel controls (TBevel, TdxBevel, and their descendants) displayed as lines to separator items.
Converts splitter controls (TSplitter, TcxSplitter, and their descendants) to layout splitters.
Creates layout items for the remaining controls and links them.
Arranges the created layout elements as close as possible to the original layout.
Note
API members of the label, check box and radio button controls are different from the corresponding layout items’ API. The missing API cannot be converted and is discarded.