User Tools

Site Tools


fill_set_fill_color_.htm
Navigation:  Language Reference > 9 -  Window and Report Attributes > Window and Report Attributes >====== FILL (set fill color) ====== Previous pageReturn to chapter overviewNext page

FILL(rgb)

blk2blue.jpg

FILL Specifies the fill color of a BOX, ELLIPSE or PANEL control.
rgb A LONG or ULONG integer constant 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 FILL attribute (PROP:FILL) specifies the display or print fill color of a BOX or ELLIPSE control. If omitted, the control is not filled with color. PROP:FILL returns COLOR:None if the FILL attribute is absent. This attribute is valid in Clarion Win32 Windows, and also for REPORT structures in both Clarion Win32 and Clarion#.

Example:

CustRpt   REPORT,AT(1000,1000,6500,9000),THOUS

CustDetail DETAIL,AT(0,0,6500,1000)

           ELLIPSE,AT(60,60,200,200),FILL(COLOR:ACTIVEBORDER)  !Color EQUATE

           BOX,AT(360,60,200,200),FILL(00FF0000h)              !Pure Red

          END

         END

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

       !Windows' active border color

       BOX,AT(20,20,20,20),FILL(COLOR:ACTIVEBORDER)

       BOX,AT(100,100,20,20),FILL(00FF0000h)  !Blue

       BOX,AT(140,140,20,20),FILL(0000FF00h)  !Green

       BOX,AT(180,180,20,20),FILL(000000FFh)  !Red

      END

fill_set_fill_color_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1