procedure playbox
cls
demonstrationintro
var note : string (1)
var xmouse, ymouse, button : int
mousewhere (xmouse, ymouse, button)
drawfillbox (275, 260, 335, 320, 4)
locatexy (280, 245)
put "Exit"
loop
getch (note)
if note = "1" then
note2C
elsif note = "2" then
note4C
elsif note = "3" then
note2D
elsif note = "4" then
note4D
elsif note = "5" then
note2E
elsif note = "6" then
note4E
elsif note = "7" then
note2G
elsif note = "8" then
note4G
end if
exit when xmouse >= 275 and xmouse <= 335 and ymouse >= 260 and ymouse <= 320 and button = 1
end loop
end playbox |