Release 10.1A: OpenEdge Development:
Progress 4GL Reference

> ## LOAD-PICTURE statement

> ##
> (Windows only; Graphical interfaces only)

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

> Note: Does not apply to SpeedScript programming.

> #### 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 © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095