Consultor Eletrônico



Kbase 17265: How To Load An Image Into The ImageList ActiveX Control
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Verified

GOAL:

How to load an image into the ImageList ActiveX Control

FACT(s) (Environment):

Windows 32-bit
Progress 8.x

FIX:

The ImageList ActiveX Control (OCX) from Microsoft assumes that the Visual Basic environment is being used. In such a situation, it wants any image added to it at runtime to be done using the Visual Basic LoadPicture command.

Unfortunately, there is no equivalent within Progress (or any other language that I know of) for this command.

What is needed is to build and/or look for another ActiveX control which acts as an intermediary between the ImageList ActiveX Control and the actual image which needs to be added to it. This new control should simply accept a file name of an existing image, convert it to Visual Basic's LoadPicture format, and give it back to the user so that they can send it on to the ImageList Control.

For third party advice, go to the Progress Email Group (PEG) at the website www.peg.com and see if anyone else has already created a control which does this.