开发者

Set vertical scroller style in NSScrollView

How can I se开发者_运维技巧t the vertical scroller style in NSScrollView?


If you're using Interface Builder, deselect "automatically hide scrollers". The scroll bars then become visible. Click a scroll bar and edit its control size attributes in the inspector.

If you're doing this in code:

NSScrollView* myScrollView = ...;
[[myScrollView verticalScroller] setControlSize: NSSmallControlSize]; // or whatever


Yes you can set the size in Xcode.
Or rather in Interface Builder:

Set vertical scroller style in NSScrollView

Make sure to expand the objects panel on the left.
Then you can see two NSScroller objects in the scroll view.
Just select them and set the control size in the Inspector Panel to Small or Mini.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜