skip to main content
OpenEdge Development: AppBuilder
Other Objects : Static images
Static images
Static image objects have no behavioral repertoire of their own, though you can use them as labels on buttons and in similar contexts. Consider cultural differences when choosing images, especially when choosing images to use as icons and labels. What is perfectly clear to one person might be mystifying to another, or even offensive. Be especially wary of using visual puns: they almost never translate well.
To create and configure a Static image element:
1. Click Image in the Objects Palette.
2. Move your mouse cursor to a bare spot in your workspace, and click to place the new Image object. Initially, the Image is undefined and looks like a smudged square, as shown:
3. Select the object and choose ToolsProperty Sheet. The Property Sheet dialog box appears:
Minimal configuration
At a minimum, you should do the following things:
*Change the object identifier to one that more clearly conveys the purpose of this image in your application.
*Identify the actual image file.
To identify the image file:
1. Click on the smudge image. The Choose Image dialog box appears:
2. Select the image type desired. AppBuilder supports many different image formats.
3. If the image you want to use is not listed, click Browse to move to the correct directory. Select the filename. You will see a preview of the image, if you have the Preview box checked.
Note that Preview shows as much of the image as possible, at the size it will appear when the application runs; AppBuilder does not rescale images here. If the image is the wrong size for your purposes, you must use some tool such as a graphics editor to rescale it before use, or must write code to rescale it under program control.
4. When you have the correct image file identified, click OK to return to the property sheet. Some portion of the image—not necessarily the whole thing—appears in place of the smudge, as a token that you have successfully identified the image. The fully qualified filename of the image also appears, for your convenience:
5. Set any other properties you consider appropriate, and click OK to dismiss the property sheet.
You can include a Tooltip string, if you wish. Under MS‑Windows, the image object will display the Tooltip string whenever the user allows the mouse cursor to hover over the image.
If you prefer to set the origin and size of the image explicitly rather than interactively, do so here.
For more information on all the settings on the property sheet, see the online help.
Advanced properties
The static image object has the normal minimum Advanced Properties. See the “Advanced properties” section for more information.