有没有办法在两个窗口上运行Modal?
就像...
我的应用程序中有一个操作会弹出一个窗口和一个附带的选项面板。我想阻止与原始窗口的交互,并仅关注弹出的窗口及其面板。
如果我只需要单个弹出窗口而不是面板,我可以轻松地做到这一点。我还可以启用和禁用原始窗口中的对象,但我想更优雅地执行此操作。有解决办法吗?
As in...
I have an action in my application that pops up a window and an accompanying panel of options. I want to block interaction with the original window and focus solely on the popped-up window and its panel.
I can easily do this if I just required the single popped up-window and not the panel. I can also enable and disable objects in the original window but I would like to do this more elegantly. Is there a solution?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,请使用附加到您的主窗口而不是弹出模式窗口。
由于工作表是窗口模式而不是应用程序模式,因此在显示工作表时您仍然可以与应用程序中的其他窗口(例如面板)进行交互。
Yes, use a sheet attached to your main window instead of popping up a modal window.
Because a sheet is window-modal not application-modal, you can still interact with other windows in your app while the sheet is displayed (such as your panel).