View Single Post
Old 11-18-2005, 10:06 AM   #1
jmbegley
New Member
 
Join Date: Sep 2005
Model: n/a
Posts: 9
Default Screens and Control flow

Please Login to Remove!

I have a question regarding control flow when pushing and popping screens off the stack.

When I push a screen onto the stack, my thread continues on to the end. What would be a good way to wait until the screen is done/popped?

For example if I have screen1 which in turn pushes screen2 am I forced to put the code for pushing screen2 into the code for screen1? Would it make more sense to control the screen pushes from the same place?

As a more real example, I have added a menu item to the Compose email page in the Mail application. When the user invokes it, I send the email and then my own screen is pushed onto the stack. When done, the screen pops itself, but then I am back on the compose page. I know how to pop the current screen, the question is "from where"?


Thanks
John
Offline