Visual Attribute Property
Description
Specifies the named visual attribute that should be applied to the object at runtime. A visual attribute defines a collection of font, color, and pattern attributes that determine the appearance of the object.
Applies to canvas, tab page, item, radio button
Set programmatically
Refer to Built-in
GET ITEM INSTANCE PROPERTY
GET ITEM PROPERTY
GET RADIO BUTTON PROPERTY
GET TAB PAGE PROPERTY
SET CANVAS PROPERTY
SET ITEM INSTANCE PROPERTY
SET ITEM PROPERTY
SET RADIO BUTTON PROPERTY
SET TAB PAGE PROPERTY
When you execute the appropriate GET Built-in function to determine the setting
of this property at runtime, the return value is one of the following:
- the name of a named visual attribute
- DEFAULT (the item uses the default attributes defined in the resource file)
- CUSTOM
Usage Notes
- In earlier version of forms, a visual attribute had to include values for
all visual attribute properties. Now you only need to define a subset. This
is called a partial visual attribute.
- If a partial visual attribute is applied at runtime (for example, it only
has Background color defined) then subsequent calls to GET_ITEM_PROPERTY()
will return CUSTOM, and not the visual attribute name. Forms merges a partial
visual attribute in with any existing visual attribute properties on the item.
- If a complete visual attribute is applied where all properties are defined
then the visual attribute is not merged but applied and the result that is
returned is the name of that visual attribute.
- If a property class with visual attribute information has been applied to
an item then a GET of VISUAL_ATTRIBUTE will also return CUSTOM.
- VISUAL_ATTRIBUTE will override the item and block levels unless you specify
a partial visual attribute, in which case Forms merges the partial visual
attribute and the item's current visual attribute.
Visual Attribute Restrictions
- The visual attribute must be a named visual attribute defined in the form
module.