Mac OS X,做一个窗口,在菜单栏 [英] Mac OS X, make a window go over menu bar

查看:296
本文介绍了Mac OS X,做一个窗口,在菜单栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有可能让一个窗口超过菜单栏,而不是全屏?



感谢在前进!

解决方案

p>

  window.level = NSMainMenuWindowLevel + 1; 

(参考:全屏显示,Mac OS X的OpenGL编程指南。)



sebastianmarkow是正确的,这是一个普通文档窗口的可怕行为,但有几种窗口类型,这是正常的:游标,工具提示和像Xscope的特殊实用程序。 p>

Is it possible to make a window to go over the menu bar, without going in fullscreen?

Thanks in Advance!

解决方案

Yes, trivially:

window.level = NSMainMenuWindowLevel + 1;

(Reference: Drawing to the Full Screen, OpenGL Programming Guide for Mac OS X.)

sebastianmarkow is correct in that this is terrible behaviour for a normal document window, but there are several window types for which this is normal: cursors, tool tips, and special utilities like Xscope.

这篇关于Mac OS X,做一个窗口,在菜单栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆