如何杀死XtAppMainLoop(Motif)? [英] How to kill XtAppMainLoop (Motif)?
问题描述
我想使用XmCreate {Error | Warning | Info}对话框,在主窗口打开并且任何程序数据可用之前,在基于SDL的应用程序的屏幕中显示一些消息。我想要打开对话框,打印想要的消息,当用户单击确定按钮时,对话框加上我为其创建的顶部小部件应该被关闭/删除。现在afaik XtAppMainLoop将循环和处理顶部窗口消息(窗口?),直到用户关闭它。我想关闭它时,对话框返回。我如何做到这一点?
I want to use XmCreate{Error|Warning|Info}Dialog to display some message in screen in my SDL based application before its main window is open and any program data is available. I want the dialog to open, print the intended message, and when the user clicks on the OK button, the dialog plus the top widget I had to create for it should be closed/removed. Now afaik XtAppMainLoop will loop and process top widget messages (a window?) until the user closes it. I want to close it when the dialog returns though. How can I do that?
推荐答案
经过几个小时和小时的谷歌和阅读之后,我发现你可以使用XtAppSetExitFlag )。
After hours and hours of googling and reading I have found out that you can use XtAppSetExitFlag (XtAppContext).
这篇关于如何杀死XtAppMainLoop(Motif)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!