How do I load an image into FireImage? I added an image to the Image Library Manager. Now I want to programmatically load it into a FireImage control. I think I have to use something like this:
SendMessage HWND_FRMNAMES_IMGNAMEUP, %FIREIMAGE_SETIMAGENORMAL, %FIREIMAGE_LOADRESOURCE, zImageFile
But what is the last parameter?
Hi Robert,
In this project I illustrate how to load dynamically a new picture into the FireImage control using the %FIREIMAGE_LOADFILE option.
http://www.planetsquires.com/protect/forum/index.php?topic=2063.0
I'm sorry don't know how to use the %FIREIMAGE_LOADRESOURCE option.
Jean-Pierre
The last parameter would be a pointer to the name of the image in the resource file. That name can be found just above the actual preview of the image itself in the Image Manager (eg. "IMAGE_LOVE_PETALS")
Dim sResourceName As String
sResourceName = "IMAGE_LOVE_PETALS"
SendMessage HWND_FORM1_FIREIMAGE1, %FIREIMAGE_SETIMAGENORMAL, %FIREIMAGE_LOADRESOURCE, StrPtr(sResourceName)
Use StrPtr for dynamic strings and VarPtr for zstrings.
Hope that helps
Yes, that is what I needed to know.
Thank you,
Robert