如何删除 NSScrollview 中窗口调整大小手柄周围绘制的正方形?
我有一个 NSScrollview 占据了整个窗口。滚动视图有垂直滚动条,但没有水平滚动条。窗口颜色为灰色。窗口的大小是可以调整的。
Cocoa 自动在窗口的大小调整手柄周围(垂直滚动条底部的正下方)绘制一个带有浅灰色边框的白色正方形。我想删除那个白色的小方块,以便灰色的窗口颜色和调整大小的凹槽显示出来。我该怎么做?
与 Twitpic 在 twitter 上分享照片 http://twitpic.com/show/thumb/ 27dcp1.png
I have an NSScrollview that takes up an entire window. The scrollview has a vertical scrollbar but no horizontal scrollbar. The window color is gray. The window is resizable.
Cocoa automatically draws a white square with a light gray border around the window's resize handle (right below the bottom of the vertical scroller). I would like to remove that little white square so that the gray window color and resize grooves show through. How do I do that?
Share photos on twitter with Twitpic http://twitpic.com/show/thumb/27dcp1.png
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只是猜测,但请尝试将滚动视图的背景颜色设置为
[NSColor clearColor]
。Just a guess, but try setting the scroll view's background color to
[NSColor clearColor]
.向窗口发送 setShowsResizeIndicator:NO 并根据需要绘制自己的指示器...
Send the window a setShowsResizeIndicator:NO and draw your own indicator as you like...