Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

OSAScriptControlMBS.BoundsChanged
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Apple Script MBS MacExtras Plugin 17.1 Yes No No No No
Function: The event called when the bounds, but not the frame, changed.

Feedback, Comments & Corrections

OSAScriptControlMBS.EnableMenuItems
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Apple Script MBS MacExtras Plugin 17.1 Yes Yes Yes No No
Function: The event where you can enable menu items.

Feedback, Comments & Corrections

OSAScriptControlMBS.FrameChanged
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Apple Script MBS MacExtras Plugin 17.1 Yes No No No No
Function: The event called when the frame changed.

Feedback, Comments & Corrections

OSAScriptControlMBS.GotFocus
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Apple Script MBS MacExtras Plugin 16.5 Yes No No No No
Function: The control itself got focus.
Notes: This only fires if the control itself got focus and not a sub control.

Feedback, Comments & Corrections

OSAScriptControlMBS.LostFocus
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Apple Script MBS MacExtras Plugin 16.5 Yes No No No No
Function: The control lost focus.
Notes: This only fires if the control itself lost focus and not a sub control.

Feedback, Comments & Corrections

OSAScriptControlMBS.MenuAction(HitItem as MenuItem) As Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Apple Script MBS MacExtras Plugin 17.1 Yes No No No No
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.

Feedback, Comments & Corrections

OSAScriptControlMBS.MouseDown(x as Integer, y as Integer, Modifiers as Integer) As Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Apple Script MBS MacExtras Plugin 17.1 Yes No No No No
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:
  • 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.
If you return False, the system handles the MouseDown so the above event handlers do not get called.

Feedback, Comments & Corrections

OSAScriptControlMBS.MouseDrag(x as Integer, y as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Apple Script MBS MacExtras Plugin 17.1 Yes No No No No
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.

Feedback, Comments & Corrections

OSAScriptControlMBS.MouseUp(x as Integer, y as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Apple Script MBS MacExtras Plugin 17.1 Yes No No No No
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.

Feedback, Comments & Corrections

OSAScriptControlMBS.ScaleFactorChanged(NewFactor as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Apple Script MBS MacExtras Plugin 17.1 Yes No No No No
Function: The backing store scale factor has changed.
Notes: Please invalidate any cached bitmaps or other relevant state.

Feedback, Comments & Corrections

OSAScriptControlMBS.shouldChangeTextInRange(affectedCharRange as NSRangeMBS, replacementString as string) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Apple Script MBS MacExtras Plugin 15.3 Yes No No No No
Function: Sent when a text view needs to determine if text in a specified range should be changed.
Notes:
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.

Feedback, Comments & Corrections

OSAScriptControlMBS.textDidBeginEditing
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Apple Script MBS MacExtras Plugin 15.3 Yes No No No No
Function: Informs you that the text object has begun editing (that the user has begun changing it).

Feedback, Comments & Corrections

OSAScriptControlMBS.textDidChange
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Apple Script MBS MacExtras Plugin 15.3 Yes No No No No
Function: Informs you that the text object has changed its characters or formatting attributes.

Feedback, Comments & Corrections

OSAScriptControlMBS.textDidEndEditing
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Apple Script MBS MacExtras Plugin 15.3 Yes No No No No
Function: Informs you that the text object has finished editing (that it has resigned first responder status).

Feedback, Comments & Corrections

OSAScriptControlMBS.textShouldBeginEditing as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Apple Script MBS MacExtras Plugin 15.3 Yes No No No No
Function: Invoked when a text object begins to change its text, this method requests permission to begin editing.
Notes: 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.

Feedback, Comments & Corrections

OSAScriptControlMBS.textShouldEndEditing as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Apple Script MBS MacExtras Plugin 15.3 Yes No No No No
Function: Invoked from a text object's implementation of resignFirstResponder, this method requests permission to end editing.
Notes: 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.

Feedback, Comments & Corrections

OSAScriptControlMBS.textViewDidChangeSelection
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event Apple Script MBS MacExtras Plugin 15.3 Yes No No No No
Function: Sent when the selection changes in the text view.

Feedback, Comments & Corrections

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





Links
MBS Xojo blog