Home Search

DriveWorks Pro 21
Font

Send Feedback

Font

This description applies to the following properties:

  • Font - sets the font for text that can be typed into a control.
  • Caption Font - sets the font for the text displayed as the caption for the control.
  • List Item Font - sets the font for the text displayed as items in the list control.
  • Option Item Font - sets the font for the text displayed as items in the Option Group control.
  • Header Font - sets the font for the header on controls that present tabular data.
  • Unit Font - sets the font for the units displayed on the measurement text box.
  • Selected Row Font - sets the font for the selected row in the Data Table control.

Property Type: Static

Default Value: Microsoft Sans Serif; Regular; 8.25pt

PropertyHierarchical Reference
Font

ControlName.Font

Caption Font

ControlName.CaptionFont

Header Font

ControlName.HeaderFont

List Item Font

ControlName.ListItemFont

Option Item Font

ControlName.OptionItemFont

Selected Row Font

ControlName.SelectedRowFont

Unit Font

ControlName.UnitFont

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 one of the following methods:

  • Using the Font Chooser.
    1. Click in the property for the control to be changed.
    2. Click the button at the end of the property value field.
       
    3. Select the Font, Font Style, Size and any Effects or Scripts from the Font dialog.
    4. Click OK.
  • Typing the Font values.
    1. Click in the property for the control to be changed.
    2. Type the font string value directly into the property field.

Examples

Font Property Value (static)ResultNotes
font-family: verdana; font-size: 14.25pt; font-weight: bold; text-decoration:Changes the font to verdana, 14,25pt, bold.

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.

Font Property Value (dynamic)ResultNotes
IF( LengthReturn<100 , "font-family: verdana; font-size: 14.25pt; font-weight: bold; font-style: italic; text-decoration:", "font-family: verdana; font-size: 12pt; text-decoration:"

Changes the font to verdana, 14,25pt, bold italic when Length is less than 100.

Otherwise it will be set to Verdana, 12pt regular

The topic How To: Embed Non-standard fonts gives more information on choosing fonts and ensuring non-standard fonts display correctly when viewed on different devices.

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