gmplDefaultStatement

Default Statement Summary

Default is a nonterminal, metalanguage statement. It is used to specify default control properties that are ultimately to be authored in the designer code. They are saved by this statement and then read into the back of code storage by the analyser so that they will be picked up, if there is no setting for the property in the actual code.

The attributes of the Default statement are as follows:

Attribute Description
Id The identifier of the control type for which default property setting values are to be supplied.
Lang The designer code language for which the setting values are to be used.

The declarations within the Default statement are as follows:

Substatement Description
Setting This substatement specifies and actual setting to be used.

The attributes of the Setting substatement are as follows:

Attribute Description
Id The identifier of the property of the control type for which a setting value is being specified. Note that Font properties are specified as "Font.fontProperty"
Value The actual default value to be associated with the property. Note that these value often contain special characters that are toxic to Xml so the value may alternatively be specified as text associated with the setting as shown below. When this alternative is used, the entire specification must be on a single line.


<setting id="BackColor"><![CDATA[&H80000005&

The script errors associated with the Default statement are as follows:

Error Description
1031 Default command missing required id attribute.
1032 The indicated control [%1d] has no class information.
1033 Encountered following when expecting 'setting': %1d
1034 Setting command missing required id attribute.
1035 Setting command missing required value attribute.
1036 Font Property [%1d] not recognized
1037 Property [%1d] not recognized


Table of Contents