Using the foreground at and background at Object Inquiry Built-in Functions |
Scroll Prev Top Next More |
The foreground at and background at functions are used to find out the current foreground or background color of a specific character position in a colored textual region. They can be used with non-colored textual regions as well; in this case, they will return the same values returned by the foreground of and background of functions.
Each function returns an integer value associated with the color of the background or foreground of the character at the specified line and column; for example:
response to News
copy foreground at column 1 line 3 char
of InfoWindow to ForeColor
copy background at column xcoord line ycoord char
of News to SelectedColor
Note that these built-in functions ignore emphasis, since that emphasize action statement affects only the appearance of the text, and not the internally-stored color attribute.