Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSLevelIndicatorMBS class.

NSLevelIndicatorMBS.Constructor

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

On success the handle property is not zero.

See also:

NSLevelIndicatorMBS.Constructor(Handle as Integer)

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

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

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

See also:

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

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

On success the handle property is not zero.

See also:

NSLevelIndicatorMBS.criticalValue as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacControls Plugin 12.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The critical value.

(Read and Write computed property)

Some examples using this property:

NSLevelIndicatorMBS.levelIndicatorStyle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacControls Plugin 12.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Set style of the indicator.

(Read and Write computed property)

Some examples using this property:

NSLevelIndicatorMBS.maxValue as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacControls Plugin 12.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The maximum value the level indicator can represent.

(Read and Write computed property)

NSLevelIndicatorMBS.minValue as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacControls Plugin 12.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The minimum value.

(Read and Write computed property)

NSLevelIndicatorMBS.numberOfMajorTickMarks as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacControls Plugin 12.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The number of major tick marks displayed.

The count must be less than or equal to the number of tick marks returned by numberOfTickMarks. For example, if the number of tick marks is 11 and you specify 3 major tick marks, the resulting level indicator will display 3 major tickmarks alternating with 8 minor tick marks.
(Read and Write computed property)

Some examples using this property:

NSLevelIndicatorMBS.numberOfTickMarks as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacControls Plugin 12.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The number of tick marks displayed by the receiver (which include those assigned to the minimum and maximum values) to count.

By default, this value is 0, and no tick marks appear. The number of tick marks assigned to a slider, along with the slider's minimum and maximum values, determines the values associated with the tick marks.
(Read and Write computed property)

NSLevelIndicatorMBS.rectOfTickMarkAtIndex(index as Integer) as NSRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacControls Plugin 12.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the bounding rectangle of the tick mark identified by index (the minimum-value tick mark is at index 0).

If no tick mark is associated with index, the method raises a NSExceptionMBS.

NSLevelIndicatorMBS.tickMarkPosition as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacControls Plugin 12.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Where tick marks appear relative to the indicator.

This method has no effect if no tick marks have been assigned (that is, numberOfTickMarks returns 0).
(Read and Write computed property)

NSLevelIndicatorMBS.tickMarkValueAtIndex(index as Integer) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacControls Plugin 12.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the receiver's value represented by the tick mark at index (the minimum-value tick mark has an index of 0).

NSLevelIndicatorMBS.warningValue as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacControls Plugin 12.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The warning value.

(Read and Write computed property)

Some examples using this property:

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


The biggest plugin in space...