Code : Tout sélectionner
TrackBarGadget(#Gadget, x, y, Width, Height, Minimum, Maximum [, Options])
Code : Tout sélectionner
TrackBarGadget(#Gadget, x, y, Width, Height, Minimum, Maximum [, Options])

pour plus d'info voici mon code
Code : Tout sélectionner
Resultat = InitMovie()
Enumeration
#Window_0
EndEnumeration
Enumeration
#liste
#play
#StopMovie
#Image
#PauseMovie
EndEnumeration
Procedure Open_Window_0()
If OpenWindow(0,0,0,700,400,#PB_Window_SystemMenu|#PB_Window_MinimizeGadget|#PB_Window_ScreenCentered,"audio player 1.0")
If CreateGadgetList(WindowID())
ButtonGadget(#liste, 2, 1, 138, 30, "LISTE ~~")
ButtonGadget(#play, 140, 1, 140, 30, "LECTURE >")
ButtonGadget(#PauseMovie, 280, 1, 140, 30, "PAUSE II", #PB_Button_Toggle )
ButtonGadget(#StopMovie, 420, 1, 140, 30,"STOP #")
ButtonGadget(#Image, 560, 1, 140, 30, "VISUALISATION"): DisableGadget(3,1)
EndIf
EndIf
EndProcedure
Open_Window_0()
Repeat
Event = WaitWindowEvent()
If Event = #PB_EventGadget
GadgetID = EventGadgetID()
If GadgetID = #liste
NomFichier$ = OpenFileRequester("Titre", "::{450d8fba-ad25-11d0-98a8-0800361b1103}\" , "Fichiers|*.*", 0)
LoadMovie(1, NomFichier$)
ElseIf GadgetID = #play
PlayMovie(1, FenetreID)
ElseIf GadgetID = #StopMovie
StopMovie()
ElseIf GadgetID = #Image
NomFichier$ = OpenFileRequester("Titre", "::{450d8fba-ad25-11d0-98a8-0800361b1103}\" , "Fichiers|*.*", 0)
LoadImage(1, NomFichier$)
ElseIf GadgetID = #PauseMovie
If GetGadgetState(#PauseMovie) = 1
PauseMovie()
Else
ResumeMovie()
EndIf
EndIf
EndIf
Until Event = #PB_EventCloseWindow
End

