Home Search

DriveWorks Pro 21
Special Variable - Form Container Width

Send Feedback

Special Variable - Form Container Width

Name: DWFormContainerWidth

The special variable Form Container Width reports on the available width a form is being displayed in.

This is useful when designing user forms to adapt to changes in width on multiple devices.

When viewed in Form Design the special variable reports the width of the available Form Design area. This accounts for the Task Explorer on the left and the properties list on the right.

When a form is viewed in DriveWorks Live the available width of the browser is reported.

Linking this special variable to the layout properties of form controls, user forms can dynamically adjust to suit the device the form is being viewed on.

Examples

Rule

Meaning
DWFormContainerWidth

Will result in the width of the Form Design area while administering a project.

Will result in the width of the browser area when viewed in DriveWorks Live.