PDA

View Full Version : IMAGECTX_SetImageAdjustment --> problem with stretching image after resizing window



martin
16-04-2011, 09:23
Control Add IMAGECTX, WindowMain, %IDC_IMAGECTX_STRETCH , "",0,0,500,500, %WS_CHILD Or %WS_VISIBLE Or %WS_BORDER
IMAGECTX_SetImageAdjustment WindowMain, %IDC_IMAGECTX_STRETCH, %IMAGECTX_STRETCH , %TRUE
Control Set Resize WindowMain, %IDC_IMAGECTX_STRETCH, 1, 1, 1, 1

Hi everyone,

After a long time I'm back here with a question (yes, i am still experimenting with ThinBasic). The code above works perfect on my pc. But on my laptop it doesn't work when I resize the window. The image does not stretch (as it should be) but it repeats. Strange, but true. I'm running Windows XP on both computers.

Does anybody why and is there a solution?

Martin

Petr Schreiber
16-04-2011, 12:01
Hi Martin,

as help file says:


Important notes about IMAGECTX control

IMAGECTX is an undocumented Microsoft interface used by Internet Explorer to render images.

Behave of this control can vary its behave depending on the installed Internet Explorer version or by a Windows update process.


I think different IE or Windows Updated are most probably root of the difference.


Petr