The Framework Manager provides a method for getting an image into an image control (#PRIM_IMAG) from a file in the directory:
For example, from:C:\Program Files (x86)\LANSA\X_WIN95\X_LANSA\x_dem\web\vl\VLFONE\Images\Other\)
This sample code loads the image UF_IM001.png into the #Image1 image control:
Define_Com Class(#PRIM_IMAG) Name(#Image1) Displayposition(1) Left(216) Parent(#COM_OWNER) Tabposition(1) Tabstop(False) Top(80) Width(65) Height(41) Style(#BorderBlue)
#Image1.Image <= #AVFRAMEWORKMANAGER.avGetImageReference( UF_IM001.PNG )
If your image is used in many parts of your application, with this method it needs to be loaded and stored only once.
See shipped example DF_T44H1O for more details.