Just starting out? Need help? Post your questions and find answers here.
AMpos
 
Posts: 42
Joined: Mon Aug 03, 2020 5:15 pm

How do I load images to ButtonImageGadget()?

by AMpos Wed Mar 10, 2021 12:44 am

This event and BindEvents is driving me crazy...

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
Return to Coding Questions

Who is online

Users browsing this forum: No registered users and 2 guests