|
Designed for computer science instruction, Turing is simply the easiest, most fun, and most effective way of teaching programming concepts. |
|
Quick Links |
||
WinOOT has had the ability to create a window whose drawing surface occupies the entire screen. This means that the drawing surface obscures the entire window. There are no window controls, window edges, editor windows or task bar visible. This may be desirable for a certain class of applications (games, etc.).
To create a full screen window, use the following code:
var w : int := Window.Open ("fullscreen")
Window.Set (w, "nocursor") % Turn off the blinking text cursor
Before the program terminates, you should close the window to allow the
user to see the rest of the Windows environment.
Window.Close (w)
When in the full screen mode, maxx and maxy are determined by the current
screen resolution. You can't change the resolution within OOT (until we
implement DirectX compatibility some time in the future). If you need a
specified resolution, check maxx and maxy and output an appropriate message.
var w : int := Window.Open ("fullscreen")
Window.Set (w, "nocursor") % Turn off the blinking text cursor
if maxx not= 1023 or maxy not= 767 then
put "Please set the resolution to 1024x768 and start the program again"
Window.Close (w)
assert false
end if
As might be obvious, running the debugger is not really possible when in
full screen mode. If you need to stop the program, pressing Ctrl+C
twice will stop the program and close the full screen window.