Code: Select all
Note on using Screen 0
Screen 0 closes any graphics window, but also clears the console window if it exists.
Screen 0, , , SCREEN_EXIT (with SCREEN_EXIT=&h80000000) also closes any graphics window, but does not clear the console window if it exists (previous text is preserved).
This is a very interesting feature, but just writing
Code: Select all
Screen 0, , , SCREEN_EXIT
does not work, I get a compiler error message:
Code: Select all
Grafik_schliessen.bas(12) error 8: Undefined symbol, SCREEN_EXIT in 'Screen 0, , , SCREEN_EXIT
I tried also #include "fbgfx.bi" and FB.SCREEN_EXIT, but I got the same error message.
The constant SCREEN_EXIT seems to be defined nowhere, you must use &h80000000, not so nice! Is this an error in the documentation, or has it been forgotten to define the constant SCREEN_EXIT, e.g. in fbgfx.bi?