Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSImageViewMBS class.

NSImageViewMBS.allowsCutCopyPaste as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 10.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the receiver allows the user to cut, copy and paste the image contents.

True if the user can cut, copy, and paste the image contents; otherwise, false to prevent the use of pasteboard operations.
(Read and Write computed property)

NSImageViewMBS.animates as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 10.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value indicating whether the receiver automatically plays animated images.

True if the receiver automatically plays animated images; otherwise, false. The default value is true for NSImageView objects you create programmatically. For NSImageView objects loaded from a nib file, the control takes the value set in Interface Builder.

The timing and looping characteristics of the animation are taken from the image data. If this method returns false, the receiver displays the first frame of the animation only.
(Read and Write computed property)

NSImageViewMBS.Constructor

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

On success the handle property is not zero.

See also:

NSImageViewMBS.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 NSImageView handle.
Example
dim t as new NSImageViewMBS(0, 0, 100, 100)
dim v as new NSImageViewMBS(t.handle)

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

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

See also:

NSImageViewMBS.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 10.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates a new image view with the given size and position.
Example
dim x as new NSImageViewMBS(0, 0, 100, 100)

On success the handle property is not zero.

See also:

NSImageViewMBS.image as NSImageMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 10.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the NSImage object displayed by the receiver.

(Read and Write computed property)

NSImageViewMBS.imageAlignment as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 10.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The alignment of the receiver's image relative to its frame.

For a list of possible values, see NSImageAlign* constants. The default value is NSImageAlignCenter.
(Read and Write computed property)

NSImageViewMBS.imageFrameStyle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 10.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The style of the frame that borders the image.
Example
ImageWell1.NSImageViewMBS.imageFrameStyle = NSImageViewMBS.NSImageFramePhoto

Value is one of the frame style constants. For a list of frame styles, see NSImageFrame* constants.
(Read and Write computed property)

NSImageViewMBS.imageScaling as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 10.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The scaling mode used to fit the receiver's image into the frame.
Example
ImageWell1.NSImageViewMBS.imageScaling = NSImageViewMBS.NSScaleNone

Value is one of the image scaling constants. For a list of possible values, see NSScale* constants.
(Read and Write computed property)

NSImageViewMBS.isEditable as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 10.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the user can drag a new image into the frame.

True if the user can drag an image into the receiver's frame; otherwise, false.
(Read and Write computed property)

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


The biggest plugin in space...