Forum Discussion

mpwhitt's avatar
mpwhitt
Visitor
12 years ago

Multiple button presses roGridScreen

I have a roGridScreen that leads to a roSpringboardScreen. If press the "OK" button multiple times (while on the grid screen), the springboard screen is shown, however, when I try to go back to the grid screen, the app immediately diverts back to the springboard screen as many times as I pressed the "OK" button. How can this behavior be avoided? Thanks.

2 Replies

  • Best is to launch the springboard immediately on keypress so the user doesn't feel like they are hitting "OK" and nothing is happening.

    Beyond that, I think you can "drain" the message port:

    while port.getmessage() ="roGridScreenEvent" 
    end while


    - Joel
  • "RokuJoel" wrote:
    Beyond that, I think you can "drain" the message port:
    while port.getmessage() ="roGridScreenEvent" 
    end while

    Couple of bugs there - both with insidious potential, it seems to me:
    while type(port.PeekMessage()) = "roGridScreenEvent":
    port.GetMessage()
    end while