Results 1 to 2 of 2

Thread: IMAGECTX_SetImageAdjustment --> problem with stretching image after resizing window

  1. #1
    Member
    Join Date
    Mar 2009
    Location
    Netherlands
    Age
    49
    Posts
    248
    Rep Power
    37

    IMAGECTX_SetImageAdjustment --> problem with stretching image after resizing window

          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

  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,089
    Blog Entries
    5
    Rep Power
    725
    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
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

Similar Threads

  1. Seam carving (an image resizing algorithm)
    By zak in forum Shout Box Area
    Replies: 4
    Last Post: 06-12-2009, 06:01
  2. TBGL window resizing demo
    By efly2020 in forum TBGL General
    Replies: 1
    Last Post: 03-04-2009, 08:13

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •