Invalide Menu Handle?
Any idea whats wrong with my code ?
Any idea whats wrong with my code ?
window=CreateWindow( "Window",10,30,640,480,window,15) canvas=CreateCanvas( 0,0,ClientWidth(window),ClientHeight(window),window ) SetGadgetLayout canvas, 1, 1, 1, 1 ;------------------- MENU game=CreateMenu( "File",0,window ) CreateMenu "New Game",1,game CreateMenu "Load Game",2,game CreateMenu "Save Game",3,game CreateMenu "",0,game CreateMenu "Exit",4,game ;------------------- IMAGES ship=LoadImage("img\ship3.bmp") SetBuffer CanvasBuffer(canvas) timer=CreateTimer(60) ;for 60 FPS While WaitEvent() Select EventID() Case $803 End Case $4001 ;main() ** HERE YOU PUT YOUR MAIN LOOP ** Cls DrawImage ship,300,200 FlipCanvas canvas End Select Wend