[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

     colorRect(<aRect>, <aColors>) --> self

        Directly alters the color of a rectangular group of cells.  <aRect>
        is an array of four numbers (top, left, bottom, and right).  The
        numbers refer to cells within the data area of the browse display,
        not to screen coordinates.  <aColors> is an array of two numbers.
        The numbers are used as indexes into the color table for the browse.
        These colors will become the normal and highlighted colors for the
        cells within the specified rectangle.

        Cells that are colored using colorRect retain their color until they
        are scrolled off the screen up or down.  Horizontal panning has no
        affect on these colors and, in fact, cells that are currently off
        screen left or right can be colored even if they are not visible.

        This example colors the entire virtual window (on and off screen):

        aRect := {1, 1, browse:rowCount, browse:colCount}
        browse:colorRect(aRect, {2, 1})

This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson