Class Properties

Top  Previous 

Class properties / methods

(Let's assume the class instance is MySmartType)

 

 

 

Property

Default

Example Code

Effect

Learning

1

MySmartType.Learning = 0

If True, when the user highlights a word or phrase, the Question stored in the LearningQuestion property is asked and the word or phrase can be added to the word file.

LearningQuestion

Add this to list of phrases ?

MySmartType.LearningQuestion = 'Add this ?'

See above

EnterCompletes

0

MySmartType.EnterCompletes=1

Replace Enter with a Tab key so it always completes the field

EnterCompletesIfFull

1

MySmartType.EnterCompletesIfFull=1

Replace Enter with Tab key if textbox is full, and no scroll attribute

ControlEnterToTab

1

MySmartType.ControlEnterToTab = 0

Convert Control+Enter to a tab so it completes the field

NoPopupToolbox

0

MySmartType.NoPopupToolbox = 1

Disables the popup window

ListLength

15

MySmartType.ListLength = 5

The Maximum length of the popup list (you might want to set his lowe for fields at the bottom of the screen)

ListSeparator

Blank

MySmartType.ListSeparator = ';'

Adds the delimiter (and a space) after each selection.  This is great for making lists (eg adding lots of emails to the to: field)

StartCharacter

3

MySmartType.StartCharacter=1

Activate Smart-Type after this many characters are typed

Lookup

0

MySmartType.Lookup = true

Use Smart-Type in "Lookup Mode" where only the first word in a field is used (ie the start character is always 1).  This allows for lookups that include spaces.

MinimumSaveLength

3

MySmartType.MinimumSaveLength = 5

Minimum length for saving when in "learning" mode

KeyCodeForLearning

45

MySmartType.KeyCodeForLearning = 45

Keycode to be used when learning phrases (45 = insert)

Disabled

0

MysmartType.disabled = true

Enable or disable Smart-type at runtime

 

 

Methods ...

 

1.SetEventToPost

Smart-Type posts some events as part of its operation.  The default event is event:user+9.  You can change this if it interferes with other templates or code ...

 

eg...

MySmartType.SeteventToPost(event:user+23)