Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

Next items

NSTextMBS.alignCenter
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS MacCocoa Plugin 8.4 Yes No No Yes, macOS only No
Function: This action method applies center alignment to selected paragraphs (or all text if the receiver is a plain text object).

Feedback, Comments & Corrections

NSTextMBS.alignLeft
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS MacCocoa Plugin 8.4 Yes No No Yes, macOS only No
Function: This action method applies left alignment to selected paragraphs (or all text if the receiver is a plain text object).

Feedback, Comments & Corrections

NSTextMBS.alignment as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacCocoa Plugin 8.4 Yes No No Yes, macOS only No
Function: The text alignment.
Notes: (Read and Write computed property)

Feedback, Comments & Corrections

NSTextMBS.alignRight
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS MacCocoa Plugin 8.4 Yes No No Yes, macOS only No
Function: This action method applies right alignment to selected paragraphs (or all text if the receiver is a plain text object).

Feedback, Comments & Corrections

NSTextMBS.backgroundColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacCocoa Plugin 7.8 Yes No No Yes, macOS only No
Function: The background color.
Notes: (Read and Write computed property)

Feedback, Comments & Corrections

NSTextMBS.baseWritingDirection as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacCocoa Plugin 8.4 Yes No No Yes, macOS only No
Function: The initial writing direction used to determine the actual writing direction for text.
Notes:
The Text system uses this value as a hint for calculating the actual direction for displaying Unicode characters. You should not need to call this method directly. If no writing direction is set, returns NSWritingDirectionNatural.

Available in Mac OS X v10.4 and later.
(Read and Write computed property)

Feedback, Comments & Corrections

NSTextMBS.changeFont
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS MacCocoa Plugin 8.4 Yes No No Yes, macOS only No
Function: This action method changes the font of the selection for a rich text object, or of all text for a plain text object.
Notes:
If the receiver doesn't use the Font panel, this method does nothing.

This method changes the font by sending a convertFont message to the shared NSFontManager and applying each NSFont returned to the appropriate text. See the NSFontManager class specification for more information on font conversion.

Feedback, Comments & Corrections

NSTextMBS.checkSpelling
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS MacCocoa Plugin 7.8 Yes No No Yes, macOS only No
Function: This action method searches for a misspelled word in the receiver's text.
Notes: The search starts at the end of the selection and continues until it reaches a word suspected of being misspelled or the end of the text. If a word isn't recognized by the spelling server, a showGuessPanel message then opens the Guess panel and allows the user to make a correction or add the word to the local dictionary.

Feedback, Comments & Corrections

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

See also:

Feedback, Comments & Corrections

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

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

See also:

Feedback, Comments & Corrections

NSTextMBS.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 MBS MacCocoa Plugin 7.8 Yes No No Yes, macOS only No
Function: Creates a new text with the given size and position.
Example:
dim x as new NSTextMBS(0, 0, 100, 100)
Notes: On success the handle property is not zero.

See also:

Feedback, Comments & Corrections

NSTextMBS.copy
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS MacCocoa Plugin 8.4 Yes No No Yes, macOS only No
Function: This action method copies the selected text onto the general pasteboard, in as many formats as the receiver supports.

Feedback, Comments & Corrections

NSTextMBS.copyFont
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS MacCocoa Plugin 8.4 Yes No No Yes, macOS only No
Function: This action method copies the font information for the first character of the selection (or for the insertion point) onto the font pasteboard, as NSFontPboardType.

Feedback, Comments & Corrections

NSTextMBS.copyRuler
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS MacCocoa Plugin 8.4 Yes No No Yes, macOS only No
Function: This action method copies the paragraph style information for first selected paragraph onto the ruler pasteboard, as NSRulerPboardType, and expands the selection to paragraph boundaries.

Feedback, Comments & Corrections

NSTextMBS.cut
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS MacCocoa Plugin 8.4 Yes No No Yes, macOS only No
Function: This action method deletes the selected text and places it onto the general pasteboard, in as many formats as the receiver supports.

Feedback, Comments & Corrections

NSTextMBS.delete
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS MacCocoa Plugin 8.4 Yes No No Yes, macOS only No
Function: This action method deletes the selected text.

Feedback, Comments & Corrections

NSTextMBS.drawsBackground as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacCocoa Plugin 7.8 Yes No No Yes, macOS only No
Function: A Boolean value that indicates whether the scrollview draws its background.
Notes: (Read and Write computed property)

Feedback, Comments & Corrections

NSTextMBS.Enabled as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacCocoa Plugin 16.5 Yes No No Yes, macOS only No
Function: Enables/disables the control.
Notes:
If enabled, text is in default text color.
if disabled, you can't edit or select and the text color is gray.
(Read and Write computed property)

Feedback, Comments & Corrections

NSTextMBS.font as NSFontMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacCocoa Plugin 8.4 Yes No No Yes, macOS only No
Function: The font of the first character in the receiver's text, or of the insertion point if there's no text.
Notes: (Read and Write computed property)

Feedback, Comments & Corrections

NSTextMBS.importsGraphics as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacCocoa Plugin 7.8 Yes No No Yes, macOS only No
Function: Whether the receiver allows the user to import files by dragging.
Notes: (Read and Write computed property)

Feedback, Comments & Corrections

NSTextMBS.isEditable as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacCocoa Plugin 7.8 Yes No No Yes, macOS only No
Function: A Boolean value that indicates whether the receiver allows the user to edit text, false if it doesn't.
Notes:
You can change the receiver's text programmatically regardless of this setting.

If the receiver is editable, it's also selectable.
(Read and Write computed property)

Feedback, Comments & Corrections

NSTextMBS.isFieldEditor as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacCocoa Plugin 8.4 Yes No No Yes, macOS only No
Function: A Boolean value that indicates whether the receiver interprets Tab, Shift-Tab, and Return (Enter) as cues to end editing and possibly to change the first responder.
Notes:
True if the receiver interprets Tab, Shift-Tab, and Return (Enter) as cues to end editing and possibly to change the first responder; false if it accepts them as text input.

See the NSWindow class specification for more information on field editors. By default, NSText objects don't behave as field editors.
(Read and Write computed property)

Feedback, Comments & Corrections

NSTextMBS.isHorizontallyResizable as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacCocoa Plugin 7.8 Yes No No Yes, macOS only No
Function: True if the receiver automatically changes its width to accommodate the width of its text, false if it doesn't.
Notes:
By default, an NSText object is not horizontally resizable.
(Read and Write computed property)

Feedback, Comments & Corrections

NSTextMBS.isRichText as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacCocoa Plugin 7.8 Yes No No Yes, macOS only No
Function: A Boolean value that indicates whether the NSText allows the user to apply attributes to specific ranges of the text.
Notes: (Read and Write computed property)

Feedback, Comments & Corrections

NSTextMBS.isRulerVisible as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS MacCocoa Plugin 7.8 Yes No No Yes, macOS only No
Function: A Boolean value that indicates whether the receiver's enclosing scroll view shows its ruler.

Feedback, Comments & Corrections

NSTextMBS.isSelectable as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacCocoa Plugin 7.8 Yes No No Yes, macOS only No
Function: A Boolean value that indicates whether the text allows the user to select text, false if it doesn't.
Notes: (Read and Write computed property)

Feedback, Comments & Corrections

NSTextMBS.isVerticallyResizable as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacCocoa Plugin 7.8 Yes No No Yes, macOS only No
Function: True if the receiver automatically changes its height to accommodate the height of its text, false if it doesn't.
Notes:
By default, an NSText object is vertically resizable.
(Read and Write computed property)

Feedback, Comments & Corrections

NSTextMBS.maxSizeHeight as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS MacCocoa Plugin 8.4 Yes No No Yes, macOS only No
Function: Returns the receiver's maximum height.

Feedback, Comments & Corrections

NSTextMBS.maxSizeWidth as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS MacCocoa Plugin 8.4 Yes No No Yes, macOS only No
Function: Returns the receiver's maximum width.

Feedback, Comments & Corrections

Next items

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




Links
MBS FileMaker blog