Computer Science Canada

offscreenonly help

Author:  kicknock [ Thu Mar 29, 2007 8:16 pm ]
Post subject:  offscreenonly help

when i use "offscreenonly" in "setscreen", anything i type in when using the "get" statement doesnt show. also, when i use the GUI menu, the dropdown options doesnt show.

how do i make them show?

Author:  Clayton [ Thu Mar 29, 2007 8:34 pm ]
Post subject:  RE:offscreenonly help

the reason nothing shows when typing is because all of the text is drawn to the back buffer. This is never seen by the user until the back buffer is drawn to the screen. The same is true for your dropdown menu. I suggest you take a look at my View.Set and View.Update tutorial in the Turing Walkthrough.

Author:  ericfourfour [ Thu Mar 29, 2007 10:11 pm ]
Post subject:  RE:offscreenonly help

If you must use get, try View.Set ("nooffscreenonly") to stop the double buffering and View.Set ("offscreenonly") to start the double buffering.

If you want a better alternative, I made a Getter class which can be found somewhere in Turing Submissions. It has a flashing cursor (iirc) so the user knows when to type, and it will work with double buffering.

As for the gui portion, simply place your View.Update after the gui is rendered onto the backbuffer.


: