LOAD-IMAGE-UP( ) method
(Windows only; Graphical interfaces only)Reads the image contained in a specified file. The image is used for the button in its up state. The image is also used for the down state if a separate down image is not specified. This method is equivalent to the LOAD-IMAGE( ) method.
Return type: LOGICAL
Applies to: BUTTON widget
filename
x-offset
y-offset
width
height
The image is not displayed until the button is realized. If the read is successful, the method returns TRUE.
In Windows, you can specify a URL pathname. If you specify a fully-qualified URL, LOAD-IMAGE-UP( ) loads the image file directly without searching directories or URLs in
PROPATH
. Valid URL protocols include HTTP and HTTPS.Note: URL pathnames cannot contain the percent symbol (%). If an error exists in a URL specified on thePROPATH
, the LOAD-IMAGE-UP( ) method continues searching with the nextPROPATH
entry.If you specify URL pathnames on the
PROPATH
and your application repeatedly uses the LOAD-IMAGE-UP( ) method with a URL pathname, you can improve performance by using the SEARCH function once to determine the full URL pathname to the directory containing the image files. Use this value to create a fully-qualified URL pathname forfilename
and avoid repeated searches of thePROPATH
.
OpenEdge Release 10.2B
|