PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Douglas McDonald on May 18, 2011, 05:31:26 PM

Title: FireImage
Post by: Douglas McDonald on May 18, 2011, 05:31:26 PM
This was asked in other posts but not answered as far as I can tell. How do I remove an image or reset the control to a no picture state for the FireImage control?

Thanks
doug
Title: Re: FireImage
Post by: Douglas McDonald on May 19, 2011, 04:48:41 PM
OK, just send a zero len string to clear the picture
Title: Re: FireImage
Post by: Roger Garstang on May 20, 2011, 05:54:01 PM
In code or IDE?  I'm guessing code, but I did see something odd when trying this in the IDE.  If I detach the image from the control it still renders with the image.  If I then remove all images it still has an image as well and a blank image that can't be deleted showing a ref count of 3 appears.
Title: Re: FireImage
Post by: Douglas McDonald on May 21, 2011, 10:21:20 AM
Yes I was talking about in code. I found the answer in the FireImageSQLiteningDemo (Thank you)

   'clear image
   noStr = ""
   SendMessage HWND_POPUP_PKGIMAGE, %FIREIMAGE_SETIMAGENORMAL, %FIREIMAGE_LOADSTRING, VarPtr(noStr) 'clear picture