4. System Classes : BarField Class
 
Share this page                  
BarField Class
The BarField class displays scaled data. The field displays two overlaid rectangles: a background rectangle and a foreground rectangle. The data value scales the foreground rectangle relative to the minimum and maximum values.
If the value is at the minimum, the foreground rectangle is not displayed. At maximum value, the foreground rectangle completely overlays the background rectangle. For intermediate values, the foreground rectangle partially covers the background rectangle.
If you want to display only the foreground rectangle without the background, set the background rectangle color and pattern to the same values as the form (or composite field) in which the bar field is displayed. (Use the BgPattern attribute inherited from FormField and the BgColor attribute inherited from FieldObject to do this.)
Bar fields are often used in table fields to display a bar chart.
Inherits From
Object Class (see Object Class)
FieldObject Class (see FieldObject Class)
FormField Class (see FormField Class)
ActiveField Class (see ActiveField Class)
ScalarField Class (see ScalarField Class)
AnalogField Class (see AnalogField Class)
Inherited By
None
Attributes
FgBitmap
FgPattern
GrowFrom
Methods
UpdForeground