@...IMAGE / DEFINE IMAGE
Creates an image control

 

 

Displays images in formats: BMP, GIF, JPG, TIF, WMF, CUR and PNG.

 

 

Standard Syntax (xBase Style):

 

 

      @ <nRow> ,<nCol>

            IMAGE <ControlName>

            [ OF | PARENT <ParentWindowName> ] 

            [ ACTION | ONCLICK | ON CLICK <ActionProcedureName> | <bBlock> ]

            PICTURE <cPictureName>

            [ WIDTH <nWidth> ]

            [ HEIGHT <nHeight> ]

            [ STRETCH ]

            [ HELPID <nHelpId> ]

            [ INVISIBLE ]

            [ TRANSPARENT  ]

            [ BACKGROUNDCOLOR anBackgroundColor ]

            [ ADJUSTIMAGE ]

 

 

Alternate Syntax:

 

 

      DEFINE IMAGE <Controlname>

            PARENT <ParentWindowName>

            ROW <nRow>

            COL <nCol>

            ONCLICK <ActionProcedureName>

            PICTURE <cPictureName>

            WIDTH <nWidth>

            HEIGHT <nHeight>

            STRETCH <lValue>

            HELPID <nHelpId>

            VISIBLE <lValue>

            TRANSPARENT <lValue>

            BACKGROUNDCOLOR <anBackgroundColor>

            ADJUSTIMAGE <lValue>

      END IMAGE

 

 

Properties:

 

 

      - Enabled

      - Visible

      - Picture

      - Row

      - Col

      - Width

      - Height

      - Name (R)

      - Parent (D)

      - HelpId (D)

      - Stretch (D)

      - Transparent (D)

      - BackgroundColor (D)

      - AdjustImage (D)

 

 

      D: Available at control definition only

      R: Read-Only

 

      Note:

-    If WIDTH/HEIGHT is set to Zero the image is displayed with the Width/Height of the original image.

-    For default WIDTH and HEIGHT is set to Zero.

-    If ADJUSTIMAGE is .T. the WIDTH/HEIGHT of the Image Control is adjusted exactly at the Width/Height of the image.

 

 

Events:

 

 

      - OnClick

 

 

Methods:

 

 

      - Show

      - Hide

      - Release