Release Summary : 2. Changes to Existing Features : Foreground and Background Patterns Now Accommodate Transparent Bitmap Images
 
Share this page                  
Foreground and Background Patterns Now Accommodate Transparent Bitmap Images
A new field background pattern, FP_BITMAPCLEAR, is introduced for the CellAttribute, FormField, FrameExec, and FrameSource classes. FP_BITMAPCLEAR is also introduced as a new foreground pattern for the BarField and CellAttribute classes.
A transparent bitmap image can be assigned to a class's FgBitmap or BgBitmap attribute. This image can be specified as a transparent background or foreground image by setting the class's BgPattern or FgPattern attribute respectively to FP_BITMAPCLEAR.
A field with its BgPattern or FgPattern attribute set to FP_BITMAPCLEAR first paints the field's background or foreground as if it were set to FP_CLEAR. If the field has a bitmap image assigned in BgBitmap or FgBitmap, the bitmap is then painted. If the bitmap contains transparent pixels, whatever is underneath them will show through.
The following attributes are affected:
BarField.FgBitmap
BarField.FgPattern
CellAttribute.BgBitmap
CellAttribute.BgPattern
CellAttribute.FgBitmap
CellAttribute.FgPattern
FormField.BgBitmap
FormField.BgPattern
FrameExec.BgBitmap
FrameExec.BgPattern
FrameSource.BgBitmap
FrameSource.BgPattern
Although the BgPattern attribute is defined for all child classes of FormField, it is not available for MenuFields.
For more information, see the Workbench User Guide and the Language Reference Guide.