I build a activity controller, that have a Class List “VC_WindowsStackActivity” in which columns have, windowsCallback, methodCallback, event, resultActivity and finish.
For stop te executing i use the “EnterData until row.finish=kTrue”, in this case the object wait for the method $activityFinish(pResultRow,pActivityOK) this method set finish to kTrue and the code goes, the resultRow is the param for the callback, this make the app can register a queue of windows wait for user interactions.
If you want to show the code please write me firstname.lastname@example.org. i dont know how upload the lib.
Sorry for my english im spanish speaker.