Menu

graphics mode .vs. text mode

Android
Kevin
2016-12-06
2016-12-07
  • Kevin

    Kevin - 2016-12-06

    My code is mostly graphics, but there are a few places that require user input. Whenever user input is required, the screen must be redrawn to eliminate whatever text was entered.
    What I would like to know is whether there is another way to revert to the previous graphic (prior to the user input), without having to redraw the screen. I know I can save the screen and redraw it (sounds like a lot of memory useage), or I can redraw it myself (but requires some large subroutines otherwise unnecessary).
    For example, there are supposed to be up to 16 screens. If I were to use only screen 2 for my graphics, would screen 2 be overwritten with the input data as screen 1 is? Any other thoughts along other lines?

    Thanks for any answers!
    Kevin

     
  • Markus Hoffmann

    Markus Hoffmann - 2016-12-07

    Yes, the easiest way is to use SGET and SPUT. However, if you used the GUI functions ALERT or FILESELECT or MENU for user input the graphics is automatically restored.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.