Online Documentation - Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchy
New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1
The list of the topics, classes, interfaces, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSTextViewControlMBS control.
NSTextViewControlMBS.BoundsChanged
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa Controls | MBS MacCocoa Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa Controls | MBS MacCocoa Plugin | 13.4 | ✅ Yes | ❌ No | ❌ No | ❌ No |
Type | Topic | Version |
event | Cocoa Controls | 13.4 |
NSTextViewControlMBS.ConstructContextualMenu(base as MenuItem, x as Integer, y as Integer) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa Controls | MBS MacCocoa Plugin | 22.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
NSTextViewControlMBS.ContextualMenuAction(hitItem as MenuItem) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa Controls | MBS MacCocoa Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
This allows the control to react on its relevant menu items. Please return true if you handled it or false to give others a chance.
NSTextViewControlMBS.didCloseContextualMenu(menu as NSMenuMBS, NSEvent as NSEventMBS) New in 24.1
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa Controls | MBS MacCocoa Plugin | 24.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
Allows you to restart any animation you may have stopped in the willShowContextualMenu event.
NSTextViewControlMBS.EnableMenuItems
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa Controls | MBS MacCocoa Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
NSTextViewControlMBS.FocusLost
Type | Topic | Version |
event | Cocoa Controls | 16.5 |
This only fires if the control itself lost focus and not a sub control.
NSTextViewControlMBS.FocusReceived
Type | Topic | Version |
event | Cocoa Controls | 16.5 |
This only fires if the control itself got focus and not a sub control.
NSTextViewControlMBS.FrameChanged
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa Controls | MBS MacCocoa Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
This event notifies you, that the control changed it's bounding frame, which is position and/or size.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa Controls | MBS MacCocoa Plugin | 16.5 | ✅ Yes | ❌ No | ❌ No | ❌ No |
This only fires if the control itself got focus and not a sub control.
NSTextViewControlMBS.LostFocus
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa Controls | MBS MacCocoa Plugin | 16.5 | ✅ Yes | ❌ No | ❌ No | ❌ No |
This only fires if the control itself lost focus and not a sub control.
NSTextViewControlMBS.MenuBarSelected
Type | Topic | Version |
event | Cocoa Controls | 17.1 |
NSTextViewControlMBS.MouseDown(x as Integer, y as Integer, Modifiers as Integer) As Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa Controls | MBS MacCocoa Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
The coordinates x and y are local to the control, i.e. they represent the position of the mouse click relative to the upper-left corner or the Control.
Return True if you are going to handle the MouseDown. In such a case:
NSTextViewControlMBS.MouseDrag(x as Integer, y as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa Controls | MBS MacCocoa Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
Mouse location is local to the control passed in to x, y.
As this event is fired continuously (hundreds of time per second), it is your responsibility to determine if the mouse has really moved.
NSTextViewControlMBS.MouseUp(x as Integer, y as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa Controls | MBS MacCocoa Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
Use the x and y parameters to determine if the mouse button was released within the control's boundaries.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa Controls | MBS MacCocoa Plugin | 13.4 | ✅ Yes | ❌ No | ❌ No | ❌ No |
Type | Topic | Version |
event | Cocoa Controls | 13.4 |
NSTextViewControlMBS.ScaleFactorChanged(NewFactor as Double)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa Controls | MBS MacCocoa Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
Please invalidate any cached bitmaps or other relevant state.
NSTextViewControlMBS.shouldChangeTextInRange(affectedCharRange as NSRangeMBS, replacementString as string) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa Controls | MBS MacCocoa Plugin | 13.4 | ✅ Yes | ❌ No | ❌ No | ❌ No |
affectedCharRange: The range of characters to be replaced.
replacementString: The characters that will replace the characters in affectedCharRange; nil if only text attributes are being changed.
Return true to allow the replacement, or false to reject the change.
NSTextViewControlMBS.textDidBeginEditing
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa Controls | MBS MacCocoa Plugin | 13.4 | ✅ Yes | ❌ No | ❌ No | ❌ No |
NSTextViewControlMBS.textDidChange
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa Controls | MBS MacCocoa Plugin | 13.4 | ✅ Yes | ❌ No | ❌ No | ❌ No |
NSTextViewControlMBS.textDidEndEditing
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa Controls | MBS MacCocoa Plugin | 13.4 | ✅ Yes | ❌ No | ❌ No | ❌ No |
NSTextViewControlMBS.textShouldBeginEditing as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa Controls | MBS MacCocoa Plugin | 13.4 | ✅ Yes | ❌ No | ❌ No | ❌ No |
If the delegate returns false, the text object proceeds to make changes. If the delegate returns true, the text object abandons the editing operation. This method is also invoked when the user drags and drops a file onto the text object.
NSTextViewControlMBS.textShouldEndEditing as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa Controls | MBS MacCocoa Plugin | 13.4 | ✅ Yes | ❌ No | ❌ No | ❌ No |
If the delegate returns false, the text object proceeds to finish editing and resign first responder status. If the delegate returns true, the text object selects all of its text and remains the first responder.
NSTextViewControlMBS.textViewDidChangeSelection
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa Controls | MBS MacCocoa Plugin | 13.4 | ✅ Yes | ❌ No | ❌ No | ❌ No |
NSTextViewControlMBS.willShowContextualMenu(menu as NSMenuMBS, NSEvent as NSEventMBS) New in 24.1
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa Controls | MBS MacCocoa Plugin | 24.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
Your chance to modify the menu before it is shown, e.g. to add menu entries.
The items on this page are in the following plugins: MBS MacCocoa Plugin.