User Tools

Site Tools


grid_set_list_grid_line_display_color_.htm
Navigation:  Language Reference > 9 -  Window and Report Attributes > Window and Report Attributes >====== GRID (set list grid-line display color) ====== Previous pageReturn to chapter overviewNext page

NewC7.jpg

GRID(rgb)

blk2blue.jpg

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

grid_set_list_grid_line_display_color_.htm.txt · Last modified: 2021/04/15 15:57 (external edit)