NSPanel 父窗口浮动在全屏 NSView 之上
我有一个 NS 面板,它是 NS 窗口的子面板;面板设置为浮动窗口级别。父窗口有一个处于全屏模式的 NSView,因此 NSPanel 浮动在全屏 NSView 之上。每当我单击该面板时,它也会将父窗口置于浮动模式,以便它呈现在影片的顶部。我有什么办法可以防止这种情况发生吗?
I have an NS panel that is the child of an NS Window; the panel is set to floating window level. The parent window has an NSView that is in full screen mode, so the NSPanel, is floating on top of the full screened NSView. Anytime I click the panel, it brings the parent window into floating mode as well, such that it renders on top of the movie. Is there any way for me to prevent this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
每当您进入全屏模式时,为什么不将面板作为子窗口删除呢?它应该仍然显示并起作用,但它不会将另一个窗口向前推进。然后,当您退出全屏模式时,将其作为子窗口添加回来。
Whenever you enter fullscreen mode, why don't you just remove the panel as a child window? It should still be displayed and function, but then it won't bring the other window forward. Then when you exit fullscreen mode, add it back as a child window.