How do I load images to ButtonImageGadget()?
Posted: Wed Mar 10, 2021 12:44 am
This event and BindEvents is driving me crazy...
How should I do this?
How should I do this?
Code: Select all
ForEach foto()
FrameGadget(1000+n,x+16,y,#icon_size-16,#icon_size-16,Left(foto(),10))
LoadImage(3000+n,pat$+foto(),#PB_LocalFile)
ButtonImageGadget(2000+n,x+25,y+14,#icon_size-32,#icon_size-32,ImageID(3000+n),#PB_Button_Toggle)
x+salto
If x>=(w_ancho-salto)
x=0:y+#icon_size
EndIf
n+1
Next