PlanetSquires Forums

Support Forums => General Board => Topic started by: Stephane Fonteyne on January 05, 2016, 06:12:40 AM

Title: HowTo : change the status from the pictureBox in FF
Post by: Stephane Fonteyne on January 05, 2016, 06:12:40 AM
Paul,

How can I change the status of the picturebox?.

Example:

I have 6 pictureboxes (placeholders) within an picture "pic1" --> red.png and other picture green.png
If the user click on the button "Flip" then must change the picture from red to green and reverse when I release the button.
How can I do that in FF

Kind regards

Title: Re: HowTo : change the status from the pictureBox in FF
Post by: Israel Vega Alvarez on January 06, 2016, 02:46:02 PM
In Firefly you can use FIREIMAGE control.

LOCAL GFILENAME AS STRING
GFILENAME="IMAGE.PNG"
SendMessage HWND_IMAGENES_FIREIMAGE1, %FIREIMAGE_SETIMAGENORMAL, %FIREIMAGE_LOADFILE, StrPtr(gFileName)
SendMessage HWND_IMAGENES_FIREIMAGE1,  %FIREIMAGE_SETFITSTYLE, 0, %TRUE