Consultor Eletrônico



Kbase 17013: V8 - How to get an Image widget to resize when image changes
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/10/1998
V8 - How to get an Image widget to resize when image changes

Starting in Version 8, image widgets which have an explicit size (i.e.
any image widget created in the UIB) will not automatically resize
when a new image is loaded into the image widget.

In order for the image widget to automatically resize, you must
set the AUTO-RESIZE attribute for the image widget to TRUE before
loading the new image.

For example...

DEFINE VARIABLE logResult AS LOGICAL NO-UNDO.

ASSIGN IMAGE-1:AUTO-RESIZE = TRUE
logResult = IMAGE-1:LOAD-IMAGE("NEWIMAGE.BMP").

Progress Software Technical Support Note # 17013