0

是否有任何 api 可以更改scroller长度,我想在没有子类化的情况下做同样的事情NSScroller

4

1 回答 1

1

NSScroller (as a subclass of NSView) has a setFrame: method that takes an NSRect. Pass in the appropriate width or height to set the length of your control.

于 2011-09-08T20:14:11.403 回答