GRID (set list grid-line display color)

Top  Previous  Next

 

GRID(rgb)

GRID

Specifies list box grid-line display color.

rgb

A LONG or ULONG integer constant, or constant EQUATE, containing the red, green, and blue components that create the color in the three low-order bytes (bytes 0, 1, and 2), or an EQUATE for a standard Windows color value.

The GRID attribute (PROPLIST:GRID) specifies the display color of grid-lines in a COMBO, or LIST control. EQUATEs for Windows' standard colors are contained in the EQUATES.CLW file. Windows automatically finds the closest match to the specified rgb color value for the hardware on which the program is run.

Example:

WinOne WINDOW,AT(0,0,400,400)

       LIST,AT(0,34,366,146),FROM(TreeDemo),USE(?Show),HVSCROLL,GRID(COLOR:Red)|

       FORMAT('80L*IT~First Name~*80L~Last Name~16C~Initials~')

      END