I'm not new to blitz, I've been using B2D since I was four, but B+ is pretty new to me with it's GUI functions. I wrote some code to test it out, but it crashes. What's wrong?
BUTTON_PRESS=$401 AppTitle "GUI Test" Window=CreateWindow( "GUI Test",600,800,600,800 ) button1=CreateButton( "Button 1",0,0,100,100,Window ) button2=CreateButton( "Button 2",0,300,100,100,Window ) Repeat Select WaitEvent Case BUTTON_PRESS Exit End Select Forever If EventSource=button1 Then Print "You pressed button 1!" Else Print "You pressed button 2!" EndIf Delay 10000 End