It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center




已关闭8年。





我正在寻找在Delphi中创建一个模式表单,该模式阻止用户界面与之交互,但仍允许其他表单继续执行。这可能吗?

最佳答案

模态形式通过调用函数ShowModal来调用,该函数仅在模态形式关闭时返回。如果要在同一线程(UI线程)上执行代码,则需要从ShowModal内部调用它。在几乎所有情况下,这都不是可行的方法。从中可以得出结论,所讨论的代码必须在UI线程之外的其他线程中执行。

关于delphi - Delphi中的模态形式可以不阻塞吗? ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/10532247/

10-11 23:09
查看更多