Options (object)

<< Click to Display Table of Contents >>

Options (object)

Access path: Application à Options

 1  Description

The Options object consolidates many global program settings, most of which can be found in the dialog box of the ribbon command File | Options in TextMaker.

 2  Access to the object

There is exactly one instance of the Options object during the whole runtime of TextMaker. It is accessed through Application.Options:

Set tm = CreateObject("TextMaker.Application")

tm.Application.Options.EnableSound = True

 3  Properties, objects, collections and methods

Properties:

AutoFormatReplaceQuotes

CheckSpellingAsYouType

ShowSpellingErrors

ShowGermanSpellingReformErrors

CreateBackup

DefaultFilePath

DefaultTemplatePath

EnableSound

Overtype

SaveInterval

SavePropertiesPrompt

AutoWordSelection

PasteAdjustWordSpacing

TabIndentKey

DefaultFileFormat

 

Objects:

Application Application

Parent Application

AutoFormatReplaceQuotes (property)

Data type: Long (SmoQuotesStyle)

Gets or sets the setting whether neutral quotation marks should be automatically converted to typographic ones. The possible values are:

smoQuotesNeutral  = 0 ' Neutral = off

smoQuotesGerman   = 1 ' German

smoQuotesSwiss    = 2 ' Swiss German

smoQuotesEnglish  = 3 ' English

smoQuotesFrench   = 4 ' French

smoQuotesAuto     = 5 ' Auto, depending on language

CheckSpellingAsYouType (property)

Data type: Boolean

Gets or sets the setting "Background spell-checking" (True or False).

ShowSpellingErrors (property)

Data type: Boolean

Gets or sets the setting "Underline typos in red" (True or False).

ShowGermanSpellingReformErrors (property)

Data type: Boolean

Gets or sets the setting "Underline old German spelling in blue" (True or False).

CreateBackup (property)

Data type: Boolean

Gets or sets the setting "Create backup files" (True or False).

DefaultFilePath (property)

Data type: String

Gets or sets the file path used by default to save and open documents.

This is just a temporary setting: When you execute the ribbon commands File | Open or File | Save as the next time, the path chosen here will appear in the dialog box. If the user changes the path, this path will then be the new default file path.

DefaultTemplatePath (property)

Data type: String

Gets or sets the file path used by default to store document templates.

This setting is saved permanently. Each call to the ribbon command File | New lets you see the document templates in the path given here.

EnableSound (property)

Data type: Boolean

Gets or sets the setting "Beep on errors" (True or False).

Overtype (property)

Data type: Boolean

Gets or sets Overwrite/Insert mode (True=Overwrite, False=Insert).

SaveInterval (property)

Data type: Long

Gets or sets the setting "Autosave documents every n minutes" (0=off).

SavePropertiesPrompt (property)

Data type: Boolean

Gets or sets the setting "Prompt for summary information when saving" (True or False).

AutoWordSelection (property)

Data type: Boolean

Gets or sets the setting "Select whole words when selecting" (True or False).

PasteAdjustWordSpacing (property)

Data type: Boolean

Gets or sets the setting "Add or remove spaces when pasting" (True or False).

TabIndentKey (property)

Data type: Boolean

Gets or sets the setting "Set left and first line indent with Tab and Backspace keys" (True or False).

DefaultFileFormat (property)

Data type: Long (TmDefaultFileFormat)

Gets or sets the standard file format in which TextMaker saves newly created documents. The possible values are:

tmDefaultFileFormatTextMaker    = 0 ' TextMaker (.tmdx)

tmDefaultFileFormatWinWordXP    = 1 ' Microsoft Word 97/XP/2003 (.doc)

tmDefaultFileFormatWinWord6     = 3 ' Microsoft Word 6.0/95 (.doc)

tmDefaultFileFormatOpenDoc      = 4 ' OpenDocument (.odt)

tmDefaultFileFormatRTF          = 5 ' RTF Rich Text Format (.rtf)

tmDefaultFileFormatOpenXML      = 6 ' Microsoft Office Open XML (.docx)

tmDefaultFileFormatTMD        = 7 ' TextMaker 2016 (.tmd)

Application (pointer to object)

Data type: Object

Returns the Application object.

Parent (pointer to object)

Data type: Object

Returns the parent object, i.e. Application.