there is a lot going on there, and you must remember that BlitzPlus is doing some things different than Blitz2D. Especially the input and print functions will open up a console window, why I don't know, but it is so. Maybe someone more knowledgeable can tell us. anyway, you have way too much inside your loop, try this...
I just changed your code a little and more simple, hope this helps...
mainw=CreateWindow("Music Vox",0,0,600,400,0,15) cc=CreateCanvas(0,0,600,400,mainw) SetBuffer CanvasBuffer(cc) CreateSlider( 567,0,25,200,cc,2) Color 225,0,0 Rect 0,0,600,400,1 For i%=1 To 10 CreateButton(Str(i%),i*30,30,30,30,cc,1) Next ExitNow=CreateButton("exit",30,70,80,30,cc,1) Color 0,0,0 Text 100,100,"Click the button to quit" Repeat If WaitEvent()=$401 Then If EventSource()=ExitNow Then Exit End If Forever End
I just changed your code a little and more simple, hope this helps...