FireImage

Started by Douglas McDonald, May 18, 2011, 05:31:26 PM

Previous topic - Next topic

Douglas McDonald

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
Doug McDonald
KD5NWK
www.redforksoftware.com
Is that 1's and 0's or 0's and 1's?

Douglas McDonald

OK, just send a zero len string to clear the picture
Doug McDonald
KD5NWK
www.redforksoftware.com
Is that 1's and 0's or 0's and 1's?

Roger Garstang

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.

Douglas McDonald

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
Doug McDonald
KD5NWK
www.redforksoftware.com
Is that 1's and 0's or 0's and 1's?