I'm trying to create a simple program that I can use traditional 2d blitz with max GUI. But its not working out. for example, in my code I have...
If KeyDown(Key_escape) Then End
but nothing happens when I hit escape. So do if statments not work for canvasses? what exactly is happening here. What are the rules to using the canvas functions ? Below is a copy of the code.
Strict
Local MyWindow:Tgadget = CreateWindow("Canvas",200,200,800,600)
Local MyCanvas:Tgadget = CreateCanvas(10,10,800,600, Mywindow)
SetGraphics CanvasGraphics(MyCanvas)
Repeat
Cls
If KeyDown(Key_escape) Then End
PollEvent()
Select EventID()
Case event_windowclose
End
End Select
Flip
Forever
If KeyDown(Key_escape) Then End
but nothing happens when I hit escape. So do if statments not work for canvasses? what exactly is happening here. What are the rules to using the canvas functions ? Below is a copy of the code.
Strict
Local MyWindow:Tgadget = CreateWindow("Canvas",200,200,800,600)
Local MyCanvas:Tgadget = CreateCanvas(10,10,800,600, Mywindow)
SetGraphics CanvasGraphics(MyCanvas)
Repeat
Cls
If KeyDown(Key_escape) Then End
PollEvent()
Select EventID()
Case event_windowclose
End
End Select
Flip
Forever