FlexLayout properties and attributes
This topic lists and describes the properties and attributes you can set for FlexLayout components, using the Edit FlexLayout Attributes dialog box.
Field/Option | Description |
---|---|
Index column | This field indicates the zero-based identification number of each region in the FlexLayout component. These index numbers are assigned automatically when the region is created. |
Length | This field indicates the number of units, either
In the list on the left, this is read-only. In the property sheet on the right, you can enter the number of units. |
or ,
that defines the width or height of the flex region.
Unit | Use this field to specify the units used to
calculate the Length of the region. This drop-down list has these
options:
|
Orientation | This option specifies how the components in this
region are to be oriented:
|
Alignment | The options available in this field depend on
what option is selected for the Orientation is
set to:
|
. If
Pack | The options available in this field depend on
what option is selected for the Orientation is
set to:
|
. If
Minimum Length | This
field specifies the minimum allowable height or width of the region.
The Orientation option determines whether this applies to the height or the width. |
Maximum Length | This
property specifies the maximum allowable height or width of the
region.
The Orientation option determines whether this applies to the height or the width. |
Default Margin | This option establishes a default margin for all child components in this region, calculated in WinStudio character units. |
Background Image | This option causes an image to display in the background of this region. You can use only images that have been imported into the system. |
VisibleWhen | This
option specifies the conditions in which this region is visible.
Clicking the ellipsis ( ) button opens the Edit Condition dialog box, which you can use to set the conditions under which the region displays. |
Animation | This option specifies an animation effect that is used to display the region when it becomes visible. |
Clicking this
button launches the Edit Contained
Components dialog box, which is used to view and
modify any components that are contained within this FlexLayout
component.
Remarque: The Edit Contained
Components dialog box displays ALL components
contained within the FlexLayout component, regardless of which
region contains each contained component.
|
|
Region control buttons | Use this set of buttons, located in the lower left corner of the Edit FlexLayout Attributes dialog box, to add, delete, and rearrange the order of the regions in the FlexLayout component. |
Field/Option | Description |
---|---|
Region Index | Use
this option to specify the index number of the region in which the
child is placed. Regions are numbered in the order in which they
appear in the Edit Flex Layout
Attributes dialog box.
For example, to add a child component to the second region listed, specify 2 in the Index column. You can also use this option to move a component from one region of the FlexLayout component to a different region. |
Margin | To use
the Default
Margin setting, leave this field blank.
To override the Default Margin property
setting for this contained component, specify new margins, using
WinStudio
characters units.
Remarque: You can have different left, top, right,
and bottom margins, by specifying four numbers separated by
commas.
For example, suppose you want to increase only the top margin. In this case, you would specify 0,3,0,0 in this field. |
FlexLayout properties specific to Report type forms
The properties and attributes listed and described in this section are used only for Report type forms. They are available only in the MainFlexLayout component on forms created by the New Form Wizard.You can add FlexLayout components to a Report type form after it has been created, but those FlexLayout components will not have these properties and attributes.
Field/Option | Description |
---|---|
Region Type | This field names the type of region that the FlexLayout region is being used for. Whatever you specify in this field determines what other Report properties are available. |
Collection | For Detail-related regions, this field specifies what collection
is the data source for the detail.
Optionally, multiple regions can be specified for the same section, using VisibleWhen expressions to show/hide regions. |
Group Property | For group-related regions, this field specifies the property being used to group the other properties. |
Repeat on New Page | When a new page is created, this option causes the Detail Header (and
Group Header, if applicable) to be shown on the new page.
This option is used only for Detail Header and Group Header regions. |
Repeat on Collection Change | When the last record for a collection has been displayed and the next
record is from a different collection, this option causes the Detail
Header (and Group Header, if applicable) for the new collection to
display before the first record for that collection.
This option is used only for Detail Header and Group Header regions. |
Insert Page Break Before | This option causes a page break to be inserted before the region where this is set to | .
Insert Page Break After | This option causes a page break to be inserted after the region where this is set to | .
Reset Page Number | This option causes the page number (in whatever region this is
set to For example, this can be useful on reports like invoices, where each invoice has separate page numbering. |
) to be reset
to 1. It also starts a new count for the total pages starting with
that page.
Can Grow | When this option is set to When this option is set to Orientation setting to and makes it read-only. , it forces the |
, all components of the region are checked to
see how much space they need, based on the data of the current row.
The region height is then changed to allow for enough space to
contain the components.
Sub-report Form | If you have another Report type form that you want to use as a sub-report, select the report from the drop-down list. |
Sub-report Parameters | Use this field to supply any parameters required by the
sub-report form specified in the previous field.
To specify parameters, either enter them into this field, or click the ellipsis (Specify Form Run Options dialog box to provide the parameters. ) button and use theValues from any collections that are in the current context on the parent report form can be used when calling the sub-report. This might include things like using P(RowPointer) when calling a sub-report for related notes. |
Accessing the Edit FlexLayout Attributes dialog box
The Edit FlexLayout Attributes dialog box is accessed by clicking the Edit FlexLayout button in the upper left corner of a FlexLayout component or any of its contained components.