Progress
Language Reference


LOAD-PICTURE Statement

Interfaces
OS
SpeedScript
Graphical only
Windows only
No

Returns a COM-HANDLE to an OlePictureObject. You can use this COM-HANDLE to set graphical properties of controls.

SYNTAX

LOAD-PICTURE [ image ] 

image

A CHARACTER expression representing the name of the graphical file. This file can have one of the following extensions: .BMP, .WMF, .EMF, .ICO, .CUR, .DIB. If the filename is not fully qualified, LOAD-PICTURE searches for a matching file on the user’s path.

EXAMPLE

The following program fragment illustrates the use of the LOAD-PICTURE statement.

DEFINE VAR chPic as COM-HANDLE.
DEFINE VAR chControl as COM-HANDLE.

/* Get the COM-HANDLE of an Image control */

/* Use LOAD-PICTURE to get a COM-HANDLE to the bitmap contained in myPic.bmp */
chPic = LOAD-PICTURE("myPic.bmp").

/* Set the control’s Picture property for the bitmap */
chControl:Picture = chPic. 


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095