Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

TextArea.NSTextFieldMBS as NSTextFieldMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 12.5 Yes No No No No
Function: Creates a NSTextFieldMBS object for the given control.
Notes:
This way you can manipulate Cocoa controls directly.
Xojo uses a NSTextField for text areas without style and without multiline.

Some examples which use this method:

Feedback, Comments & Corrections

TextArea.NSTextViewMBS as NSTextViewMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No No No
Function: Creates a NSTextViewMBS object for the given control.
Example:
// load rtfd file into textarea
dim file as FolderItem = SpecialFolder.Desktop.Child("test.rtfd")
dim n as NSAttributedStringMBS = NSAttributedStringMBS.attributedStringWithPath(file)
dim t as NSTextViewMBS = TextArea1.NSTextViewMBS
t.textStorage.setAttributedString(n)
Notes:
This way you can manipulate Cocoa controls directly.
Xojo uses a NSTextField for text areas without style and without multiline.

Some examples which use this method:

Feedback, Comments & Corrections

TextArea.RTFDataMBS as Memoryblock
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 13.5 Yes No No Yes, macOS only No
Function: Get or set the textview content as RTF data.
Example:
dim rtf as MemoryBlock = TextArea1.RTFDataMBS
TextArea2.RTFDataMBS = rtf
Notes:
Works only for Cocoa and uses RTF parser/generator from Apple.
(Read and Write computed property)

Some examples which use this property:

Feedback, Comments & Corrections

TextArea.WinSpellcheckingMBS as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS Win Plugin 18.2 No Yes No No No
Function: Enables spellchecking for Textarea.
Notes:
Only for Windows 8 and newer.
Uses current language from user.

See AutomaticSpellingCorrectionEnabled and ContinuousSpellCheckingEnabled properties in NSTextViewMBS for MacOS.
(Read and Write computed property)

Some examples which use this property:

Feedback, Comments & Corrections

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




Links
MBS Xojo PDF Plugins