FLAT (set flat control)

Top  Previous  Next

 

FLAT

The FLAT attribute (PROP:FLAT) specifies the BUTTON, CHECK, or RADIO with an ICON attribute appears flat until the mouse cursor passes over it. This attribute is typically used on controls placed in a TOOLBAR.

This feature works best if the ICON attribute names a .GIF file to display, as the image will automatically be "grayed" when the control is not active (the mouse cursor is not directly over the control).

The FLAT attribute is also supported in LIST,COMBO, ENTRY, and SPIN controls. Activating FLAT for these controls results in a "flatter" appearance (removes the recessed appearance).

PROP:FLAT is a read/write property.

Example:

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

       TOOLBAR

        CHECK('1'),AT(0,0,20,20),USE(C1),ICON('Check1.GIF'),FLAT

        BUTTON,AT(120,0,20,20),USE(?B7),ICON('Button1.GIF')

        OPTION('Option 4'),USE(OptVar4)

         RADIO('Radio 7'),AT(120,0,20,20),USE(?R7),ICON('Radio1.GIF'),FLAT

         RADIO('Radio 8'),AT(140,0,20,20),USE(?R8),ICON('Radio2.GIF'),FLAT

        END

       END

      END

 

CODE

OPEN(WinOne)

?B7{PROP:FLAT} = TRUE