4D v13.4

INVERT BACKGROUND

Home

 
4D v13.4
INVERT BACKGROUND

INVERT BACKGROUND 


 

INVERT BACKGROUND ( {* ;} textObject ) 
Parameter Type   Description
Operator in Allows entry of a variable or object name
textObject  Variable, Field in Text variable or field to invert

INVERT BACKGROUND is used to invert textObject in the form.

The scope of the command is the form being used.

You can use INVERT BACKGROUND when displaying on screen or printing to a dot matrix printer. A postscript printer will not print an inverted background.

You cannot invert a variable in an output form. Avoid using INVERT BACKGROUND on an enterable variable. Entering characters will only partially erase the inverted display.

Example  

This example is an object method for a variable in an input form. It tests the value of a field. If the field is positive, the object method does nothing. If the field is negative, the object method inverts the display of the variable in the form:

 vAmount:=[Accounts]Amount ` Put the value of field in the variable
 If(vAmount<0) ` If it is a negative amount…
    INVERT BACKGROUND(vAmount) ` Invert the background
 End if

Note: This command, originally created for black and white user interfaces, is now rarely used. You now generally use colors to highlight a field or a variable.

 
PROPERTIES 

Product: 4D
Theme: User Interface
Number: 93

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: < 4D v6

 
SEE ALSO 

OBJECT SET COLOR
OBJECT SET RGB COLORS