Invert

Description

The way the colors in a Picture control are displayed, either inverted or normal.

Applies to

Picture controls

Syntax

Describe and Modify argument:

"bitmapname.Invert { = ' number ' }"

Parameter

Description

bitmapname

The name of the Picture control in the DataWindow for which you want to invert the colors.

number

(exp) A boolean number indicating whether the colors of the picture will display inverted. Values are:

  • 0 – (Default) No; do not invert the picture’s colors.

  • 1 – Yes; display the picture with colors inverted.

Number can be a quoted DataWindow expression.

Usage


In the painter

Select the control and set the value in the Properties view, General tab, Invert Image check box.

Examples

Example 1

setting = dw1.Describe("bitmap_1.Invert")

dw1.Modify(  

"bitmap_1.Invert='0~tIf(empstatus=~~~'A~~~',0,1)'")