Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSScrollViewMBS class.

NSScrollViewMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Controls MBS MacControls Plugin 8.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates a new scrollview with size 100/100 and position 0/0
Example
dim t as new NSScrollViewMBS

On success the handle property is not zero.

See also:

NSScrollViewMBS.Constructor(Handle as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Controls MBS MacControls Plugin 10.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates an object based on the given NSScrollView handle.
Example
dim t as new NSScrollViewMBS(0, 0, 100, 100)
dim v as new NSScrollViewMBS(t.handle)

MsgBox str(v.Bounds.Width)+" x "+str(v.Bounds.Height)

The handle is casted to a NSScrollView and the plugin retains this handle.

See also:

NSScrollViewMBS.Constructor(left as Double, top as Double, width as Double, height as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Controls MBS MacControls Plugin 7.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates a new scrollview with the given size and position.
Example
dim x as new NSScrollViewMBS(0, 0, 100, 100)

On success the handle property is not zero.

See also:

NSScrollViewMBS.flashScrollers

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Controls MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Flash the overlay scroll bars.

This method is only to scroll views that use overlay scrollers.

This method can be invoked to cause the overlay scroller knobs to be momentarily shown. This may be desirable when changing a document view's size or swapping new content into the view, or to give the user a sense of the current position within the scrollable range at each step of an incremental search or similar operation.

Available in Mac OS X v10.7 and later.

NSScrollViewMBS.reflectScrolledClipView(clipView as NSClipViewMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Controls MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Adjusts the receiver's scrollers to reflect the size and positioning of its content view.

ClipView: The clip view being adjusted to. If aClipView is any view object other than the receiver's content view, the method does nothing.

This method is invoked automatically during scrolling and when an NSClipView object's relationship to its document view changes; you should rarely need to invoke it yourself, but may wish to override it for custom updating or other behavior. If you override this method, be sure to call the superclass implementation. If you do not, other controls (such as the current scrollers) may not be updated properly.

Available in Mac OS X v10.0 and later.

NSScrollViewMBS.tile

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Lays out the components of the receiver: the content view, the scrollers, and the ruler views.

You rarely need to invoke this method, but subclasses may override it to manage additional components.

The items on this page are in the following plugins: MBS MacControls Plugin.


The biggest plugin in space...