Picture
Pictures are PowerBuilder-specific controls that display a
bitmap (BMP) file, a GIF or animated GIF file, a JPEG file, a PNG
file, a run-length encoded (.RLE) file, or an Aldus-style Windows
metafile (WMF).
To display a picture
-
Place a picture control in the window.
-
In the General tab page in the Properties view, enter in the
PictureName text box the name of the file you want to display, or
click the ellipsis button to select a file from the Select Image
dialog box.The picture displays.
You can choose to resize or invert the image.
If you try to insert a very large image into a picture control,
the image may fail to display. The maximum size that will display
depends on the version of Windows, the graphics card and driver, and
the available memory. Compressed files must be decompressed to
display. Failure to display is most likely to occur with JPEG files
because the JPEG standard supports very high compression and the
decompressed content may be many times larger than the size of the
JPEG file.
Be careful about how you use picture controls. They can serve
almost any purpose. They have events, so users can click on them, but
you can also use them simply to display images. Be consistent in their
use so users know what they can do with them.
Select Image dialog box
The Select Image dialog box
allows you to select from the custom image (in absolute or relative
path) or the built-in image. The built-in images are grouped by
categories, and can be filtered by size or searched by name, so it’s
much easier to find an image.
If you set a relative path for the custom image, make sure the
path is relative to the target (*.pbt file) location.
