如何删除 NSScrollview 中窗口调整大小手柄周围绘制的正方形?

发布于 2024-09-11 04:47:17 字数 352 浏览 1 评论 0原文

我有一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

最笨的告白 2024-09-18 04:47:17

只是猜测,但请尝试将滚动视图的背景颜色设置为 [NSColor clearColor]

Just a guess, but try setting the scroll view's background color to [NSColor clearColor].

晨曦÷微暖 2024-09-18 04:47:17

向窗口发送 setShowsResizeIndicator:NO 并根据需要绘制自己的指示器...

Send the window a setShowsResizeIndicator:NO and draw your own indicator as you like...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文