Class: dbBitmap
Properties | Events | Methods | Index of Classes
Provides for automatic display of bitmap graphics from database table columns
Hierarchy
cObject > cUIObject > DfBaseObject > DfBaseWindow > DfBaseUIWindow > DfBaseContainer > DfBaseDialog > Container3d > BitmapContainer > dbBitmap
Show full hierarchy and direct subclasses
Library: Windows Application Class Library
Package: Dbbitmap.pkg
Mixins: Nesting_Mixin, Navigate_Mixin, Server_Mixin
Description
dbBitMap is used to provide for automatic display of bitmap graphics from database table columns.
Data Access Worldwide provides the DataFlex Graphics Library free of charge for more advanced graphics work in DataFlex applications.
Usage
Object Country_Flag is a dbBitmap
Entry_Item Country.Flag
Set Border_Style to Border_Dialog // Raised border
Set Bitmap_Style to Bitmap_Stretch // Auto-resize bitmap to fit object
Set Size to 83 149
Set Location to 12 54
End_Object
Note
Objects of this class display the bitmap file named in a database field to which it is linked, upon receiving the entry_display message from their data dictionary. With this class, you can associate one or more bitmap files with each record of a database file, such as personnel, customers, or virtually anything else.
If you want to clear the name of the bitmap to be displayed you need to set the bitmap name to blank (via set bitmap to) plus you need to set the changed state to true.
Sample
Set Bitmap Of oBitmapContainer To ""
Set Changed_State Of oBitmapContainer To True