Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.
Platforms to show: All Mac Windows Linux Cross-Platform
NSSearchFieldControlMBS.Action
Function:
The Xojo control for a NSSearchField.
Notes:
This control embeds a special NSSearchField subclass.
Designed for Xojo 2013r1 and newer. May work on Real Studio 2012, but not perfectly.
Please use view property to access the underlaying object and set properties.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
event | Cocoa Controls | MBS MacCocoa Plugin | 13.4 | Yes | No | No | No | No |
Notes:
This control embeds a special NSSearchField subclass.
Designed for Xojo 2013r1 and newer. May work on Real Studio 2012, but not perfectly.
Please use view property to access the underlaying object and set properties.
NSSearchFieldControlMBS.BoundsChanged
Function:
The event called when the bounds, but not the frame, changed.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
event | Cocoa Controls | MBS MacCocoa Plugin | 17.1 | Yes | No | No | No | No |
NSSearchFieldControlMBS.EnableMenuItems
Function:
The event where you can enable menu items.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
event | Cocoa Controls | MBS MacCocoa Plugin | 17.1 | Yes | Yes | Yes | No | No |
NSSearchFieldControlMBS.FrameChanged
Function:
The event called when the frame changed.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
event | Cocoa Controls | MBS MacCocoa Plugin | 17.1 | Yes | No | No | No | No |
NSSearchFieldControlMBS.GotFocus
Function:
The control itself got focus.
Notes: This only fires if the control itself got focus and not a sub control.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
event | Cocoa Controls | MBS MacCocoa Plugin | 16.5 | Yes | No | No | No | No |
Notes: This only fires if the control itself got focus and not a sub control.
NSSearchFieldControlMBS.LostFocus
Function:
The control lost focus.
Notes: This only fires if the control itself lost focus and not a sub control.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
event | Cocoa Controls | MBS MacCocoa Plugin | 16.5 | Yes | No | No | No | No |
Notes: This only fires if the control itself lost focus and not a sub control.
NSSearchFieldControlMBS.MenuAction(HitItem as MenuItem) As Boolean
Function:
Called when a menuitem is choosen.
Notes: 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.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
event | Cocoa Controls | MBS MacCocoa Plugin | 17.1 | Yes | No | No | No | No |
Notes: 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.
NSSearchFieldControlMBS.MouseDown(x as Integer, y as Integer, Modifiers as Integer) As Boolean
Function:
The mouse button was pressed inside the control’s region at the location passed in to x, y.
Notes:
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:
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
event | Cocoa Controls | MBS MacCocoa Plugin | 17.1 | Yes | No | No | No | No |
Notes:
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:
- The Action event, if any, will not execute and the state of the object will not change.
- You will receive the MouseDrag and MouseUp events.
NSSearchFieldControlMBS.MouseDrag(x as Integer, y as Integer)
Function:
This event fires continuously after the mouse button was pressed inside the Control.
Notes:
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.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
event | Cocoa Controls | MBS MacCocoa Plugin | 17.1 | Yes | No | No | No | No |
Notes:
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.
NSSearchFieldControlMBS.MouseUp(x as Integer, y as Integer)
Function:
The mouse button was released.
Notes: 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 | Console & Web | iOS |
event | Cocoa Controls | MBS MacCocoa Plugin | 17.1 | Yes | No | No | No | No |
Notes: Use the x and y parameters to determine if the mouse button was released within the control's boundaries.
NSSearchFieldControlMBS.ScaleFactorChanged(NewFactor as Double)
Function:
The backing store scale factor has changed.
Notes: Please invalidate any cached bitmaps or other relevant state.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
event | Cocoa Controls | MBS MacCocoa Plugin | 17.1 | Yes | No | No | No | No |
Notes: Please invalidate any cached bitmaps or other relevant state.
NSSearchFieldControlMBS.TextDidBeginEditing(fieldEditor as NSTextMBS, notification as NSNotificationMBS)
Function:
Sent when a control with editable text begins an editing session.
Notes:
Notification: The notification object. The name of the notification is always NSControlTextDidBeginEditingNotification.
This event is invoked when the user begins editing text in a control such as a text field or a form field. The control posts a NSControlTextDidBeginEditingNotification notification, and if the control's subclass implements this event, it is automatically registered to receive the notification. The field editor is also delivered for inspection.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
event | Cocoa Controls | MBS MacCocoa Plugin | 14.0 | Yes | Yes | Yes | No | No |
Notes:
Notification: The notification object. The name of the notification is always NSControlTextDidBeginEditingNotification.
This event is invoked when the user begins editing text in a control such as a text field or a form field. The control posts a NSControlTextDidBeginEditingNotification notification, and if the control's subclass implements this event, it is automatically registered to receive the notification. The field editor is also delivered for inspection.
NSSearchFieldControlMBS.TextDidChange(fieldEditor as NSTextMBS, notification as NSNotificationMBS)
Function:
Sent when the text in the receiving control changes.
Notes:
Notification: The notification object. The name of the notification is always NSControlTextDidChangeNotification.
This event is invoked when text in a control such as a text field or form changes. The control posts a NSControlTextDidChangeNotification notification, and if the control's subclass implements this event, it is automatically registered to receive the notification. The field editor is provided as parameter for inspection.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
event | Cocoa Controls | MBS MacCocoa Plugin | 14.0 | Yes | Yes | Yes | No | No |
Notes:
Notification: The notification object. The name of the notification is always NSControlTextDidChangeNotification.
This event is invoked when text in a control such as a text field or form changes. The control posts a NSControlTextDidChangeNotification notification, and if the control's subclass implements this event, it is automatically registered to receive the notification. The field editor is provided as parameter for inspection.
NSSearchFieldControlMBS.TextDidEndEditing(fieldEditor as NSTextMBS, notification as NSNotificationMBS)
Function:
Sent when a control with editable text ends an editing session.
Notes:
Notification: The notification object. The name of the notification is always NSControlTextDidEndEditingNotification.
This event is invoked when the user stops editing text in a control such as a text field or form. The control posts a NSControlTextDidEndEditingNotification notification, and if the control' subclass implements this event, it is automatically registered to receive the notification. The field editor is also provided for inspection.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
event | Cocoa Controls | MBS MacCocoa Plugin | 14.0 | Yes | Yes | Yes | No | No |
Notes:
Notification: The notification object. The name of the notification is always NSControlTextDidEndEditingNotification.
This event is invoked when the user stops editing text in a control such as a text field or form. The control posts a NSControlTextDidEndEditingNotification notification, and if the control' subclass implements this event, it is automatically registered to receive the notification. The field editor is also provided for inspection.
NSSearchFieldControlMBS.textShouldBeginEditing(fieldEditor as NSTextMBS) as boolean
Function:
The event called to decide whether text editing should be allowed.
Notes:
Return true to allow text editing or false to deny.
Be aware that an event in Xojo without return will cause false to be returned.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
event | Cocoa Controls | MBS MacCocoa Plugin | 14.0 | Yes | Yes | Yes | No | No |
Notes:
Return true to allow text editing or false to deny.
Be aware that an event in Xojo without return will cause false to be returned.
NSSearchFieldControlMBS.textShouldEndEditing(fieldEditor as NSTextMBS) as boolean
Function:
The event called to decide whether ending text editing should be allowed.
Notes:
Return true to allow end of text editing or false to deny.
Be aware that an event in Xojo without return will cause false to be returned.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
event | Cocoa Controls | MBS MacCocoa Plugin | 14.0 | Yes | Yes | Yes | No | No |
Notes:
Return true to allow end of text editing or false to deny.
Be aware that an event in Xojo without return will cause false to be returned.
The items on this page are in the following plugins: MBS MacCocoa Plugin.
Links
MBS Xojo Plugins