DEFAULTFORMAT keyword

Applies To

Form components

Extended data type variable values

Property defaults

Component property: Data type

Description

Specifies default format properties for the value of a component.

Syntax

DEFAULTFORMAT( keyword( ) [keyword( ) . . .] )

Part Description
keyword( ) keywords and parameters that determine the visual format and other properties of the value of a component. These keywords can serve as keyword() settings:
  • FONT
  • FORECOLOR
  • BACKCOLOR
  • DECIMALPOINT
  • COMMA
  • COMMAS
  • DATE
  • DATETIME
  • TIME
  • AUTOIME
  • BLOBFORMAT

Remarks

WinStudio stores the DEFAULTFORMAT keyword, its parameters, and other specifications for a data type in a variable. If a default format is specified at the component level in the Form Component Properties dialog box, WinStudio creates a form-level variable whose name consists of the prefix dt_ and the name of the component with which it is associated. An extended data type variable is global, and the variable name consists of the prefix edt_ and the name of the user-defined data type on which it is based. Once you specify a data type, you can apply it, including DEFAULTFORMAT specifications, to a component by means of the variable.

Example

In the following example of a data type specification, the DEFAULTFORMAT keyword sets the typeface to bold Times New Roman in blue.

DATATYPE(CHAR) DEFAULTFORMAT(FONT(-11,0,0,0,700,0,0,0,0,3,2,1,18,Times 
 New Roman) FORECOLOR(0,0,255))
Rubriques liées