#Bar

Top  Previous  Next

The #Bar object is used to display VarValue numerical values in the range between Limit1 and Limit2 in the form of a bargraph.

 

Example

100

bar_fillup bar_filldn bar_filly

0

 

0                        100   100                        0   0                                   100

bar_fillx     bar_fill_left   bar_fill_right

 

Parameters

Object

Column A

M/O

Default

Description

#Bar

M


Display the numerical value as a bargraph

X, Y, DX, DY

Columns D-G

M/O

Default

Description

Integer constants

Variable of type INT

O

Autom. positioning

Position and dimension

Color

Column H

M/O

Default

Description

<Color>

O

Current foreground color

Fill color

BackColor

Column I

M/O

Default

Description

<Color>

O

Current background color

Background color

Format

Column J

M/O

Default

Description

Format

O

No frame

Type of frame

Action

Column K

M/O

Default

Description

SetVar

O


The SetVar actions are supported apart from SetVar=NotVar

Limit1

Column L

M/O

Default

Description

 

<constant>

<variable>

O

VarType-Min

Initial value of the bargraph. See also Parameter Option!

...Numerical constant

...Variable of type VarType

Limit2

Column M

M/O

Default

Description

 

<constant>

<variable>

O

VarType-Max

End value of the bargraph. See also Parameter Option.

Numerical constant

Variable of type VarType

ActionLimit1, ActionLimit2

Columns N,O

M/O

Default

Description

<action>

O


The standard LimitActions are available.

VarValue

Column P

M/O

Default

Description

<variable>

O


The value of this variable determines how much the bargraph is filled

VarType

Column Q

M/O

Default

Description

Numerical data types

O


All numerical data types are supported

VarState

Column R

M/O

Default

Description

<variable>

O



Option

Column S

M/O

Default

Description

Fill=Up

O

Fill=Up

Fill from bottom to top, for which Limit1 is bottom and Limit2 top.

Example

100

0bar_fillup

Fill=Down

O

 

Fill from top to bottom, for which Limit1 is top and Limit2 bottom.

Example

0

bar_filldn

100

Fill=Right

O

 

Fill from left to right, for which Limit1 is left and Limit2 right.

Example

bar_fill_right

0                                    100

Fill=Left

O

 

Fill from right to left, for which Limit1 is right and Limit2 left.

bar_fill_left

100                                  0

Fill=x

O

 

The object is filled from the center to the left or right. Limit1 is the far left, Limit 2 is the far right, the center is (Limit1 + Limit2)/2

Example

-100                   0                     100

bar_fillx

Fill=y

O

 

The object is filled from the center to the top or bottom. Limit1 is at the bottom, Limit 2 is at the top, the center is (Limit1 + Limit2)/2

Example

100

-100bar_filly

PWL=<level>

O

0

Required password level for enabling (see #Password).

VarStateOnOffInverted

O

 

Inverts the On / Off functionality of the VarState Variable:

 

VarState = 0 -> Off

VarState = 1 -> On

 

Init, Exit

Columns U, V

M/O

Default

Description

<action>

O


The same actions are available as described for the Action parameter

 

 

Icon-Hinweis

The Limit action (e.g. color change) is executed when limit values are overshot or undershot. A Limit action, such as at 80% of the value is not possible. For this two bar objects such as $Group object can be defined (see also “overlaid objects” demo project). Alternatively the #VBar object can also be used.