Et ça marche Nickel, une petite animation s'affiche sans effort.
C'est pas une bonne nouvelle!

Code : Tout sélectionner
Enumeration
#Window_0
EndEnumeration
;- Gadget Constants
;
Enumeration
#ButtonImage_0
#Image_1
EndEnumeration
;- Image Plugins
;- Image Globals
Global Image0
Global Image1
;- Catch Images
Image0 = CatchImage(0, ?Image0)
;- Images
DataSection
Image0:
IncludeBinary "1.ani"
EndDataSection
Procedure Open_Window_0()
If OpenWindow(#Window_0, 387, 422, 223, 139, #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar | #PB_Window_ScreenCentered , "test")
If CreateGadgetList(WindowID())
ImageGadget(#ButtonImage_0, 65, 20, 32,32, Image0,#PB_Image_Border)
EndIf
EndIf
EndProcedure
Open_Window_0()
Repeat
Event = WaitWindowEvent()
If Event = #PB_EventGadget
GadgetID = EventGadgetID()
If GadgetID = #ButtonImage_0
Debug "GadgetID: #ButtonImage_0"
EndIf
EndIf
Until Event = #PB_EventCloseWindow
End
;
Code : Tout sélectionner
If OpenWindow(0,0,0,245,105,#PB_Window_SystemMenu|#PB_Window_ScreenCentered,"ImageGadget") And CreateGadgetList(WindowID(0))
If LoadImage(1, "1.ani") ; change 2nd parameter to the path/filename of your image
ImageGadget(0, 10,10,100,83,UseImage(1)) ; imagegadget standard
ImageGadget(1,130,10,100,83,UseImage(1),#PB_Image_Border) ; imagegadget with border
EndIf
Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf
Code : Tout sélectionner
#lr_loaddefaultsize=$40
; curseur est le nom de la ressource que tu as fourni
hcursor=LoadImage_(GetModuleHandle_(0),"curseur",#IMAGE_cursor,0,0,#lr_defaultcolor|#lr_loaddefaultsize)
Debug hcursor
If OpenWindow(0,0,0,245,105,#PB_Window_SystemMenu|#PB_Window_ScreenCentered,"Curseur Animé")
If CreateGadgetList(WindowID(0))
ImageGadget(0, 10,10,32,32,hcursor)
EndIf
Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf