Home Search

DriveWorks Pro 22
Button and Caption Width

Send Feedback

Button and Caption Width

Button Width - Specifies the width of buttons in the control. (Spin Button)

Caption Width - Controls the width of the control's caption. (Combo Box, Date Picker, List Box, Measurement Text Box, Numeric Text Box, Spin Button, Text Box controls.)

Property Type: Static

Default Value: varies from 100 depending on the control type

Hierarchical Reference: ControlName.CaptionWidth

To Change the Default Value

Ensure the property is a static property (It will display the gray orb alongside the property name).

The default value of the static property can be changed by:

  1. Click in the property for the control to be changed
  2. Type the required value.

Examples

Width Property Value (static)ResultNotes
200Changes the caption width of the control to 200The value is entered directly into the property.

A rule can also be built for this property by changing the type to dynamic.

See How To: Change A Static Property To A Dynamic Property.

Width Property Value (dynamic)ResultNotes
IF(DWVariableNumberOfOptions=3, 60, 25)Sets the caption width to be 60 if the variable is 3, otherwise the width is 25The value can be set by making the property dynamic (see above), launching the rule builder and applying the function.
DWVariableNumberOfOptions*24Sets the caption width to be the variable multiplied by 24The value can be set by making the property dynamic (see above), launching the rule builder and applying the function.

Value set in Form Designer. Static properties can be made Dynamic by double clicking the gray radio button.