pasturel@sctc.com (Pierre Pasturel) (01/04/91)
Thanks to those who suggested how I could implement a delay in a callback using a timer event, but I realized what I really need is the ability for the user running my motif application to pause the application during execution. And to resume execution when the user wants to. Ideally, I would like an "f.pause" function (which mwm does not provide to my knowledge) which, when invoked from a menu or the keyboard or a mouse button, will freeze or pause the execution of my motif application. Then, I would like an "f.resume" function to resume execution. One observation: when my application is busy executing (i.e., updating XmText string values, labels, etc...), I've noticed that I can "freeze" or stop the application in its tracts by moving a window (i.e, by executing the f.move mwm function). The exucution of this function is essentially taking precedence over requests from my application and produces the desired effect of freezing my application until I release the mouse button to stop moving the selected window. The thing is, I want the user running my motif application to have any easier way of freezing the application (e.g., press mouse button 2 to pause, press mouse button 3 to resume). In other words, its a nuissance for the user to have to move a window to freeze the motif application. Any suggestions on an easier, more user friendly way of pausing???? Thanks for any and all suggestions. Pierre pasturel@sctc.com