Well, in the code I posted I had it set up like this.
I changed it to the following:
The above throws the error " Identifier MainWindow not found"
Local MainWindow:TGadget MainWindow:TGadget = CreateWindow("Test",200,200,800,600,0,style)
I changed it to the following:
SuperStrict Local style:Int = WINDOW_TITLEBAR|WINDOW_RESIZABLE|WINDOW_MENU|WINDOW_STATUS MainWindow:TGadget = CreateWindow("Test",200,200,800,600,0,style) Repeat WaitEvent() Select EventID() Case EVENT_WINDOWCLOSE End End Select Until KeyHit(KEY_ESCAPE)
The above throws the error " Identifier MainWindow not found"