Please enable JavaScript to view this site.

ESL Documentation

Object Inquiry Built-in Function

Return the foreground color of a region.

foreground of OBJECT_NAME

OBJECT_NAME

The identifier for an object.

Description

For graphical, image, and textual regions, the value returned is the integer value of the color associated with the foreground of the specified region.

For keys, the value returned is the integer value of the color associated with the object. If the object is invisible, a negative value will be returned.

If no color is specified for the object, the foreground of function will return the integer 7 (white). This is also the case if the object is invisible, and no color has been specified.

Example

 

response to Labels

 make Labels foreground color foreground of Bulletin

See Also

background of Object Inquiry Built-in Function

color Keyword

foreground at and background at Object Inquiry Built-in Functions

make background and make foreground  COLOR Action Statements