import GUI
var win := Window.Open ("title:My Media Player,position:top;center,graphics:200;400")
proc stop
Music.PlayFileStop
end stop
proc playCd
Music.PlayFile ("cd")
end playCd
proc playTrack1
Music.PlayFile ("cd:1")
end playTrack1
proc playTrack2
Music.PlayFile ("cd:2")
end playTrack2
proc playTrack3
Music.PlayFile ("cd:3")
end playTrack3
proc playTrack4
Music.PlayFile ("cd:4")
end playTrack4
proc playTrack5
Music.PlayFile ("cd:5")
end playTrack5
proc playTrack6
Music.PlayFile ("cd:6")
end playTrack6
proc playTrack7
Music.PlayFile ("cd:7")
end playTrack7
proc playTrack8
Music.PlayFile ("cd:8")
end playTrack8
proc playTrack9
Music.PlayFile ("cd:9")
end playTrack9
proc playTrack10
Music.PlayFile ("cd:10")
end playTrack10
proc playTrack11
Music.PlayFile ("cd:11")
end playTrack11
proc playTrack12
Music.PlayFile ("cd:12")
end playTrack12
proc playTrack13
Music.PlayFile ("cd:13")
end playTrack13
proc playTrack14
Music.PlayFile ("cd:14")
end playTrack14
proc playTrack15
Music.PlayFile ("cd:15")
end playTrack15
proc playTrack16
Music.PlayFile ("cd:16")
end playTrack16
proc playTrack17
Music.PlayFile ("cd:17")
end playTrack17
proc playTrack18
Music.PlayFile ("cd:18")
end playTrack18
proc playTrack19
Music.PlayFile ("cd:19")
end playTrack19
proc playTrack20
Music.PlayFile ("cd:20")
end playTrack20
var playAll : int := GUI.CreateButtonFull (1, 350, 0, "ALL ", playCd, 0, '^D', true)
var playstop : int := GUI.CreateButtonFull (80, 350, 0, "STOP ", stop, 0, '^D', true)
var play1 : int := GUI.CreateButtonFull (1, 320, 0, "Track1 ", playTrack1, 0, '^D', true)
var play2 : int := GUI.CreateButtonFull (1, 290, 0, "Track2 ", playTrack2, 0, '^D', true)
var play3 : int := GUI.CreateButtonFull (1, 260, 0, "Track3 ", playTrack3, 0, '^D', true)
var play4 : int := GUI.CreateButtonFull (1, 230, 0, "Track4 ", playTrack4, 0, '^D', true)
var play5 : int := GUI.CreateButtonFull (1, 200, 0, "Track5 ", playTrack5, 0, '^D', true)
var play6 : int := GUI.CreateButtonFull (1, 170, 0, "Track6 ", playTrack6, 0, '^D', true)
var play7 : int := GUI.CreateButtonFull (1, 140, 0, "Track7 ", playTrack7, 0, '^D', true)
var play8 : int := GUI.CreateButtonFull (1, 110, 0, "Track8 ", playTrack8, 0, '^D', true)
var play9 : int := GUI.CreateButtonFull (1, 80, 0, "Track9 ", playTrack9, 0, '^D', true)
var play10 : int := GUI.CreateButtonFull (1, 50, 0, "Track10", playTrack10, 0, '^D', true)
var play11 : int := GUI.CreateButtonFull (80, 320, 0, "Track11", playTrack11, 0, '^D', true)
var play12 : int := GUI.CreateButtonFull (80, 290, 0, "Track12", playTrack12, 0, '^D', true)
var play13 : int := GUI.CreateButtonFull (80, 260, 0, "Track13", playTrack13, 0, '^D', true)
var play14 : int := GUI.CreateButtonFull (80, 230, 0, "Track14", playTrack14, 0, '^D', true)
var play15 : int := GUI.CreateButtonFull (80, 200, 0, "Track15", playTrack15, 0, '^D', true)
var play16 : int := GUI.CreateButtonFull (80, 170, 0, "Track16", playTrack16, 0, '^D', true)
var play17 : int := GUI.CreateButtonFull (80, 140, 0, "Track17", playTrack17, 0, '^D', true)
var play18 : int := GUI.CreateButtonFull (80, 110, 0, "Track18", playTrack18, 0, '^D', true)
var play19 : int := GUI.CreateButtonFull (80, 80, 0, "Track19", playTrack19, 0, '^D', true)
var play20 : int := GUI.CreateButtonFull (80, 50, 0, "Track20", playTrack20, 0, '^D', true)
colorback(black)
loop
exit when GUI.ProcessEvent
end loop
|