The rotation you'll have to do on your own, but the easiest way to do a message box would be to throw it in it's own Subroutine, with it's own Sync.
This is all pseudocode.
Sub DialogMenu
optionSelected = -1
// rem display all menu items here
displayMenuItems
//rem do self-contained main loop
//this will loop endlessly (and render everything on screen!)
//until the user does something
while optionSelected = -1
if UserInput.Equals("yes")
optionSelected = 0
endif
if UserInput.Equals("no")
optionSelected = 1
endif
sync()
endwhile
// do what you need to do now based on optionSelected
if optionSelected = 0
//delete fiels
endif
//rem hide menu
hideMenuItems
//rem end of sub, it will now resume control to the sub that called it
End Sub
I actually do a lot of code like this in my own programs. It's more modular, and you have a lot less if/else branches to worry about.
Hi there. My name is Dug. I have just met you, and I love you.