Announcement

Collapse
No announcement yet.

CONTROL SET IMAGE

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CONTROL SET IMAGE

    Hi
    I have a little program updating some DDT controls via the CONTROL SET IMAGE command about 4 per second after about 3-4 minutes the images stop updating but the program continues fine including some CONTROL SET TEXT commands.

    Any ideas?


    -------------
    David Prinold

  • #2
    You are likely to be running out of resources as CONTROL SET IMAGE DOES NOT release the old image - you have to handle it yourself with a couple of lines of code.

    Code:
    CONTROL SEND CBHNDL, %CONTROLID, %STM_GETIMAGE, %IMAGE_BITMAP, 0 TO hBmp&
    CONTROL SET IMAGE CBHNDL, %CONTROLID, "#imageid"
    DeleteObject hBmp

    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>
    Lance
    mailto:[email protected]

    Comment


    • #3
      Thanks I'll try that


      ------------------
      David Prinold

      Comment


      • #4
        That worked fine the program ran over night and the IMAGE(s) keep updating.

        Ta


        ------------------
        David Prinold

        Comment


        • #5
          My pleasure, Sir!

          ------------------
          Lance
          PowerBASIC Support
          mailto:[email protected][email protected]</A>
          Lance
          mailto:[email protected]

          Comment

          Working...
          X