Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

NSTabViewMBS.addTabViewItem(tabViewItem as NSTabViewItemMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: Adds the tab item specified by tabViewItem.
Notes:
tabViewItem: The tab view item to be added.

The item is added at the end of the array of tab items, so the new tab appears on the right side of the view.

Feedback, Comments & Corrections

NSTabViewMBS.allowsTruncatedLabels as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: Whether if the receiver allows truncating for labels that don't fit on a tab.
Notes:
Value is true if the receiver allows truncating for labels that don't fit on a tab, otherwise false.

The default is true.
When truncating is allowed, the tab view inserts an ellipsis, if necessary, to fit a label in the tab.
(Read and Write computed property)

Feedback, Comments & Corrections

NSTabViewMBS.Constructor
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: Creates a new tab view with size 100/100 and position 0/0
Example:
dim t as new NSTabViewMBS
Notes: On success the handle property is not zero.

See also:

Feedback, Comments & Corrections

NSTabViewMBS.Constructor(Handle as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 10.3 Yes No No Yes, macOS only No
Function: Creates an object based on the given NSTabView handle.
Example:
dim t as new NSTabViewMBS(0, 0, 100, 100)
dim v as new NSTabViewMBS(t.handle)

MsgBox str(v.Bounds.Width)+" x "+str(v.Bounds.Height)
Notes: The handle is casted to a NSTabView and the plugin retains this handle.

See also:

Feedback, Comments & Corrections

NSTabViewMBS.Constructor(left as Double, top as Double, width as Double, height as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: Creates a new tab view with the given size and position.
Example:
dim x as new NSTabViewMBS(0, 0, 100, 100)
Notes: On success the handle property is not zero.

See also:

Feedback, Comments & Corrections

NSTabViewMBS.contentRect as NSRectMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: Returns the rectangle describing the content area of the receiver.
Notes: This area does not include the space required for the receiver's tabs or borders (if any).

Feedback, Comments & Corrections

NSTabViewMBS.controlSize as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: The size of the receiver.
Notes:
Use NSRegularControlSize, NSSmallControlSize or NSMiniControlSize.
(Read and Write computed property)

Feedback, Comments & Corrections

NSTabViewMBS.controlTint as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: The tab view's control tint.
Notes:
Use NSDefaultControlTint, NSBlueControlTint, NSGraphiteControlTint or NSClearControlTint.
(Read and Write computed property)

Feedback, Comments & Corrections

NSTabViewMBS.drawsBackground as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: Whether if the receiver draws a background color when the tab view type is NSNoTabsNoBorder.
Notes:
True if the receiver draws a background color when the tab view type is NSNoTabsNoBorder, otherwise false.

If the receiver uses bezeled edges or a line border, the appropriate background color for that border is used.
(Read and Write computed property)

Feedback, Comments & Corrections

NSTabViewMBS.font as NSFontMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: The font for tab label text.
Notes:
Tab height is adjusted automatically to accommodate a new font size. If the view allows truncating, tab labels are truncated as needed.
(Read and Write computed property)

Feedback, Comments & Corrections

NSTabViewMBS.indexOfTabViewItem(tabViewItem as NSTabViewItemMBS) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: Returns the index of the specified item in the tab view.
Notes: The zero-based index of tabViewItem, or [NSNotFound] if the item is not found.

Feedback, Comments & Corrections

NSTabViewMBS.indexOfTabViewItemWithIdentifier(identifier as Variant) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: Returns the index of the item that matches the specified identifier. identifier, or NSNotFound (-1) if the item is not found.
Notes: Returns nil on any error.

Feedback, Comments & Corrections

NSTabViewMBS.insertTabViewItem(tabViewItem as NSTabViewItemMBS, atIndex as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: Inserts tabViewItem into the receiver's array of tab view items at index.
Notes:
tabViewItem: The tab view item to be added.
index: The index at which to insert the tab view item. The index parameter is zero-based.

Feedback, Comments & Corrections

NSTabViewMBS.minimumSize as NSSizeMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: Returns the minimum size necessary for the receiver to display tabs in a useful way.
Notes: You can use the value returned by this method to limit how much a user can resize a tab view.

Feedback, Comments & Corrections

NSTabViewMBS.numberOfTabViewItems as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: Returns the number of items in the receiver's array of tab view items.

Feedback, Comments & Corrections

NSTabViewMBS.removeTabViewItem(tabViewItem as NSTabViewItemMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: Removes the item specified by tabViewItem from the receiver's array of tab view items.

Feedback, Comments & Corrections

NSTabViewMBS.selectedTabViewItem as NSTabViewItemMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: Selects the specified tab view item.

Feedback, Comments & Corrections

NSTabViewMBS.selectFirstTabViewItem
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: This action method selects the first tab view item.

Feedback, Comments & Corrections

NSTabViewMBS.selectLastTabViewItem
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: This action method selects the last tab view item.

Feedback, Comments & Corrections

NSTabViewMBS.selectNextTabViewItem
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: This action method selects the next tab view item in the sequence.
Notes: If the currently visible item is the last item in the sequence, this method does nothing, and the last page remains displayed.

Feedback, Comments & Corrections

NSTabViewMBS.selectPreviousTabViewItem
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: This action method selects the previous tab view item in the sequence.
Notes: If the currently visible item is the first item in the sequence, this method does nothing, and the first page remains displayed.

Feedback, Comments & Corrections

NSTabViewMBS.selectTabViewItem(tabViewItem as NSTabViewItemMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: Returns the tab view item for the currently selected tab.
Notes: Returns the currently selected tab view item, or nil if no item is selected.

Feedback, Comments & Corrections

NSTabViewMBS.selectTabViewItemAtIndex(index as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: Selects the tab view item specified by index.
Notes: The index parameter is base 0.

Feedback, Comments & Corrections

NSTabViewMBS.selectTabViewItemWithIdentifier(identifier as Variant)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: Selects the tab view item specified by identifier.

Feedback, Comments & Corrections

NSTabViewMBS.tabViewItemAtIndex(index as Integer) as NSTabViewItemMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: Returns the tab view item at index in the tab view's array of items.
Notes:
index: The index at which to insert the tab view item. The index parameter is zero-based.

Returns the tab view item at the specified index.

Feedback, Comments & Corrections

NSTabViewMBS.tabViewItemAtPoint(x as Double, y as Double) as NSTabViewItemMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: Returns the tab view item at the specified point.
Notes:
Returns the tab view item under the hit point, or nil if no tab view item is under that location.
You can use this method to find a tab view item based on a user's mouse click.

Feedback, Comments & Corrections

NSTabViewMBS.tabViewItems as NSTabViewItemMBS()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: Returns the receiver's array of tab view items.
Notes: A tab view keeps an array containing one tab view item for each tab in the view.

Feedback, Comments & Corrections

NSTabViewMBS.tabViewType as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: The tab type for the receiver.
Notes:
Use constants: NSTopTabsBezelBorder, NSLeftTabsBezelBorder, NSBottomTabsBezelBorder, NSRightTabsBezelBorder, NSNoTabsBezelBorder, NSNoTabsLineBorder or NSNoTabsNoBorder.
(Read and Write computed property)

Feedback, Comments & Corrections

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




Links
MBS FileMaker Plugins