PreviousNextIndex

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
Example

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

DEFINE VARIABLE chPic     AS COM-HANDLE NO-UNDO. 
DEFINE VARIABLE chControl AS COM-HANDLE NO-UNDO. 
/* 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. 


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex