DEFINE PRIVATE IMAGE image-nameimage-phrase LIKE image size-phraseBGCOLOR expressionFGCOLOR expressionCONVERT-3D-COLORSTOOLTIP tooltipSTRETCH-TO-FIT RETAIN-SHAPE TRANSPARENTimage-namePRIVATE IMAGE
Note: IMAGE image-name
FILE nameIMAGE-SIZE IMAGE-SIZE-CHARS IMAGE-SIZE-PIXELSwidth BY heightFROM X n Y n ROW n COLUMN nFor more information on this syntax, see the Image phrase reference entry.LIKE image
width BY heightSIZE SIZE-CHARS SIZE-PIXELSIf you specify SIZE or SIZE-CHARS, the units are characters; if you specify SIZE-PIXELS, the units are pixels. If you use character units, the values width and height must be decimal constants; for pixel units, they must be integer constants. For more information, see the SIZE phrase reference entry.BGCOLOR expressionFGCOLOR expressionSpecifies that the colors associated with an image will be converted to the system 3D colors when an image is loaded. Table 30 describes the color conversion process.
Table 30: TOOLTIP tooltipYou can add or change the TOOLTIP option at any time. If TOOLTIP is set to "" or the Unknown value (?), then the ToolTip is removed from the button. No ToolTip is the default. ToolTips are supported in Windows only.This procedure defines an image widget named trashcan, and loads into the widget a series of operating system image files that create an animation of a fire burning in a trash can. The user begins the animation by choosing the Animate button. This procedure serves as an illustration only. It depends on the existence of image filenames ANI01, ANI02. ... ANI14 , which are not provided.
In Windows, if the file has no extension, the AVM by default looks for image files with either a .bmp or .ico extension.
The AVM only performs the color conversion process on bitmaps (.bmp files) that contain 256 or fewer colors. However, you might consider using 16-color bitmaps because only the first sixteen entries in the bitmap’s color table will be converted.
Icon colors (.ico files) are not converted, even if CONVERT-3D-COLORS is TRUE.
See Image phrase for the list of supported image file formats.
You can specify an application-defined widget ID for a compile-time defined image using the form-item phrase in either the FORM statement or the DEFINE FRAME statement. See the FORM statement and DEFINE FRAME statement reference entries for more information.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |