Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSScrollViewMBS class.
NSScrollViewMBS.autohidesScrollers as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 7.8 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
(Read and Write property)
NSScrollViewMBS.backgroundColor as NSColorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 7.8 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
(Read and Write property)
NSScrollViewMBS.borderType as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 11.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Specifies the appearance of the style of the scroll view's border. See NSBorderType for a list of possible values.
Use constants NSNoBorder = 0, NSLineBorder = 1, NSBezelBorder = 2 or NSGrooveBorder = 3.
(Read and Write property)
NSScrollViewMBS.contentSize as NSSizeMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
(Read only property)
NSScrollViewMBS.contentView as NSClipViewMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 11.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
If view has a document view, this method also sets the receiver's document view to be the document view of view. The original content view retains its document view.
(Read and Write property)
NSScrollViewMBS.documentCursor as Variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 11.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Value is an NSCursorMBS object.
(Read and Write property)
NSScrollViewMBS.documentView as NSViewMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
(Read and Write property)
NSScrollViewMBS.documentVisibleRect as NSRectMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
(Read only property)
NSScrollViewMBS.drawsBackground as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 7.8 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
(Read and Write property)
NSScrollViewMBS.FindBarPosition as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 18.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
See NSScrollViewFindBarPosition* constants for possible values.
(Read and Write property)
Some examples using this property:
NSScrollViewMBS.FindBarView as NSViewMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 18.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
This property is managed by NSTextFinderMBS and you must not set this property.
The container may freely modify the view's width, but should not modify its height.
(Read only property)
NSScrollViewMBS.FindBarVisible as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 18.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
When this property is true and the findBarView property is set, then the find bar is displayed by the container. Otherwise, the find bar is not displayed.
The default value should be false.
(Read and Write property)
Some examples using this property:
NSScrollViewMBS.hasHorizontalRuler as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 7.8 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
(Read and Write property)
NSScrollViewMBS.hasHorizontalScroller as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 7.8 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
(Read and Write property)
NSScrollViewMBS.hasVerticalRuler as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 7.8 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
(Read and Write property)
NSScrollViewMBS.hasVerticalScroller as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 7.8 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
(Read and Write property)
NSScrollViewMBS.horizontalLineScroll as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 7.8 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
This amount is the amount used when the user clicks the scroll arrows on the horizontal scroll bar without holding down a modifier key. When displaying text in an NSScrollView, for example, you might set this amount to the height of a single line of text in the default font.
(Read and Write property)
NSScrollViewMBS.horizontalPageScroll as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 7.8 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
This amount is used when the user clicks the scroll arrows on the horizontal scroll bar while holding down the Option key.
This amount expresses the context that remains when the receiver scrolls by one page, allowing the user to orient to the new display. It differs from the line scroll amount, which indicates how far the document view moves. The page scroll amount is the amount common to the content view before and after the document view is scrolled by one page.
(Read and Write property)
NSScrollViewMBS.horizontalScrollElasticity as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 11.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
A scroll view can scroll its contents past its bounds to achieve an elastic effect.
When set to NSScrollElasticityAutomatic, scrolling the horizontal axis beyond its document bounds only occurs if the document width is greater than the view width or, the vertical scroller is hidden and the horizontal scroller is visible.
The default value is NSScrollElasticityAutomatic.
Available in Mac OS X v10.7 and later.
(Read and Write property)
NSScrollViewMBS.horizontalScroller as NSScrollerMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
(Read and Write property)
NSScrollViewMBS.lineScroll as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 7.8 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The line scroll is the amount by which the receiver scrolls itself when scrolling line by line, expressed in the content view's coordinate system. It's used when the user clicks the scroll arrows without holding down a modifier key. When displaying text in an NSScrollView, for example, you might set this value to the height of a single line of text in the default font.
As part of its implementation, this method sets VerticalLineScroll and HorizontalLineScroll.
(Read and Write property)
NSScrollViewMBS.pageScroll as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 7.8 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
This amount is used when the user clicks the scroll arrows on the vertical scroll bar while holding down the Option key. As part of its implementation, this method calls verticalPageScroll.
This amount expresses the context that remains when the receiver scrolls by one page, allowing the user to orient to the new display. It differs from the line scroll amount, which indicates how far the document view moves. The page scroll amount is the amount common to the content view before and after the document view is scrolled by one page.
Note that a scroll view can have two different page scroll amounts: verticalPageScroll and horizontalPageScroll. Use this method only if you can be sure they're both the same.
(Read and Write property)
Some examples using this property:
NSScrollViewMBS.rulersVisible as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 7.8 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
(Read and Write property)
NSScrollViewMBS.scrollerKnobStyle as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 11.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Applicable only to scroll views that use overlay scrollers.
Available in Mac OS X v10.7 and later.
(Read and Write property)
Some examples using this property:
NSScrollViewMBS.scrollerStyle as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 11.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
This setting is automatically set at runtime, based on the user's preference setting and, if relevant, the set of connected pointing devices and their configured scroll capabilities, as determined by the NSScroller method preferredScrollerStyle.
Setting an scroll view's scroller style sets the style of both the horizontal and vertical scrollers. If the scroll view subsequently creates or is assigned a new horizontal or vertical scroller, they will be assigned the same scroller style that was assigned to the scroll view..
Available in Mac OS X v10.7 and later.
(Read and Write property)
NSScrollViewMBS.scrollsDynamically as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 7.8 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
NSScrollView scrolls dynamically by default.
(Read and Write property)
NSScrollViewMBS.usesPredominantAxisScrolling as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 11.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Whether the scroll view supports a predominant scrolling direction. true if there is a predominant scrolling direction; otherwise false.
Some content is scrollable in both the horizontal and vertical axes, but is predominantly scrolled one axis at a time. Other content (such as a drawing canvas) should scroll freely in both axes.
Traditionally this is not an issue with scroll wheels since they can only scroll in one direction at a time. With scroll balls and touch surfaces, it becomes more difficult to determine the user's intention.
This property helps a scroll view determine the user's intention by specifying if there is a predominant scrolling axis for content.
The default value is true.
Available in Mac OS X v10.7 and later.
(Read and Write property)
NSScrollViewMBS.verticalLineScroll as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 7.8 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
This value is the amount used when the user clicks the scroll arrows on the vertical scroll bar without holding down a modifier key. When displaying text in an NSScrollView, for example, you might set this value to the height of a single line of text in the default font.
(Read and Write property)
NSScrollViewMBS.verticalPageScroll as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 7.8 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
This amount is used when the user clicks the scroll arrows on the vertical scroll bar while holding down the Option key.
This amount expresses the context that remains when the receiver scrolls by one page, allowing the user to orient to the new display. It differs from the line scroll amount, which indicates how far the document view moves. The page scroll amount is the amount common to the content view before and after the document view is scrolled by one page. Thus, setting the page scroll amount to 0.0 implies that the entire visible portion of the document view is replaced when a page scroll occurs.
(Read and Write property)
NSScrollViewMBS.verticalScrollElasticity as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 11.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
A scroll view can scroll its contents past its bounds to achieve an elastic effect.
When set to NSScrollElasticityAutomatic, scrolling the vertical axis beyond its document bounds occurs if any of the following are true: the vertical scroller is visible, the content height is greater than view height, or the horizontal scroller hidden.
Available in Mac OS X v10.7 and later.
(Read and Write property)
Some examples using this property:
NSScrollViewMBS.verticalScroller as NSScrollerMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacControls Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
(Read and Write property)
Some examples using this property:
- /MacControls/Autohide Scrollbar for TextArea
- /MacControls/ContainerControl List
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListBoxTV TableView
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Hierarchical & Flat/ListBoxTV OutlineView
- /MacFrameworks/CustomNSScroller/Dark scrollbar
The items on this page are in the following plugins: MBS MacControls Plugin.