开发者

NSOpenGLView: NSWindow resizeIndicator is missing

开发者 https://www.devze.com 2023-03-07 23:36 出处:网络
I am currently creating a simple Cocoa Window programmatically with and NSOpenGLView attached to it. Anyways if I create the windows style mask with with NSResizableWindowMask and [m_window setShowsRe

I am currently creating a simple Cocoa Window programmatically with and NSOpenGLView attached to it. Anyways if I create the windows style mask with with NSResizableWindowMask and [m_window setShowsResizeIndicator: YES ]; I'd expect to see the resize indicator in the bottom right. The resizing works, but the indicator does not show at all. I also checked simple NSOpenGLView examples and they also have the same problem so I am pretty 开发者_如何学JAVAcertain that it's not a bug in my code but rather a problem with a view that has 100% width and height. Is there any way to position the indicator ontop of the NSOpenGLView?


Short answer: NSOpenGLView will cover the resize indicator, no matter what you do. You can fake it positioning a custom texture at the bottom right corner of your View.

See this thread for detailed discussion and some example codes:

  • http://www.idevgames.com/forums/thread-6160.html
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号