4D v14.3INVERT BACKGROUND |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
INVERT BACKGROUND
|
INVERT BACKGROUND ( {* ;} textObject ) | ||||||||
Parameter | Type | Description | ||||||
* | Operator |
![]() |
Allows entry of a variable or object name | |||||
textObject | Variable, Field |
![]() |
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.
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.
Product: 4D
Theme: User Interface
Number:
93
Created: < 4D v6
OBJECT SET COLOR
OBJECT SET RGB COLORS
4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)