Xojo Conferences
MBSOct2019CologneDE

Platforms to show: All Mac Windows Linux Cross-Platform

TextArea.SetTextThreadSafeMBS(text as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Controls MBS Util Plugin 13.2 Yes Yes Yes No No
Function: Sets text property on main thread.
Example:
// called im a thread:
TextArea1.SetTextThreadSafeMBS "Hello World"
Notes:
This method is to allow you to set the text property of a label in a thread without a problem.

If called on main thread, the plugin will simply set text property directly.
If called on other threads the plugin will schedule to set the property a short time later on the main thread.

It may be better to call an update method you created on your window with CallDelegatesMBS.CallDelegateOnMainThreadMBS instead to do several update steps on one.

Feedback, Comments & Corrections

TextArea.WinAutoCorrectionMBS as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Controls MBS Win Plugin 19.2 No Yes No No No
Function: Enables auto correction for Textarea.
Example:
TextArea1.WinAutoCorrectionMBS = True
Notes:
TextArea1.NSTextViewMBS.AutomaticSpellingCorrectionEnabled = True
(Read and Write computed property)

Feedback, Comments & Corrections

TextArea.WinInsertImageMBS(data as string, Width as Integer, Height as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Controls MBS Win Plugin 14.3 No Yes No No No
Function: Inserts image to file.
Example:
Dim pic As Picture = LogoMBS(500)
Dim data As String = pic.GetData(pic.SaveAsJPEG)

call TextArea1.WinInsertImageMBS(data, 500, 500)
Notes:
Specify size in pixels and image data.
Image data works with JPEG and other data types.
Requires Windows 8 or newer.

Some examples which use this method:

Feedback, Comments & Corrections

TextArea.WinRTFDataMBS(SelectionOnly as boolean = false) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Controls MBS Win Plugin 14.3 No Yes No No No
Function: Get or set the RTF data for the text area.
Example:
Dim rtfData As String
Notes:
rtfData = TextArea1.WinRTFDataMBS
(Read and Write computed property)

Some examples which use this property:

Feedback, Comments & Corrections

TextArea.WinSelStrikeThroughMBS as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Controls MBS Win Plugin 17.4 No Yes No No No
Function: Get or set StrikeThrough text style.
Example:
TextArea1.WinSelStrikeThroughMBS = True
Notes:
See example project for how to do this for both Mac and Windows.
(Read and Write computed property)

Feedback, Comments & Corrections

TextArea.WinSelSubScriptMBS as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Controls MBS Win Plugin 17.0 No Yes No No No
Function: Get or set subscript text style.
Example:
TextArea1.WinSelSubScriptMBS = True
Notes:
Subscript text has a lower base line and is smaller.
See example project for how to do this for both Mac and Windows.
(Read and Write computed property)

Some examples which use this property:

Feedback, Comments & Corrections

TextArea.WinSelSuperScriptMBS as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Controls MBS Win Plugin 17.0 No Yes No No No
Function: Get or set superscript text style.
Example:
TextArea1.WinSelSuperScriptMBS = True
Notes:
Superscript text has a higher base line and is smaller.
See example project for how to do this for both Mac and Windows.
(Read and Write computed property)

Some examples which use this property:

Feedback, Comments & Corrections

TextArea.WinShowFontPanelMBS as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Controls MBS Win Plugin 19.2 No Yes No No No
Function: Shows font dialog.
Example:
If TextArea1.WinShowFontPanelMBS Then
// update controls as font may have been changed?

End If
Notes:
You can make changes and apply them with OK button.
Returns true when OK is selected.

Feedback, Comments & Corrections

TextArea.WinSpellcheckingMBS as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Controls MBS Win Plugin 18.2 No Yes No No No
Function: Enables spellchecking for Textarea.
Example:
TextArea1.WinSpellcheckingMBS = True
Notes:
TextArea1.NSTextViewMBS.continuousSpellCheckingEnabled = True
(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 Util Plugin, MBS Win Plugin.




Links
MBS Xojo blog