NTControls22.AutoType ActiveX Control


Identification

NTControls22.AutoType

Description

A control that is used to predict typing based on a custom history list, and/or directly to the local file system, by either a drop down list or single line selection. Note: NTControls22 Objects are ActiveX Controls only for Visual Basic and are not available in the MaxIDE Environment.

Enumerators

AutoCompleteStyles

None = 0
ListComplete = 1
TextComplete = 2

Events

Change ()

Description

Occurs when the text has changed.

Click ()

Description

Occurs when the control is clicked.

DblClick ()

Description

Occurs when the control is double clicked.

KeyDown (KeyCode, Shift)

Parameters

KeyCode Integer

The KeyCode of the key event that occurred.

Shift Integer

The shift state of the keyboard when the key event occurred.

Description

This event occurs when the user presses a key just before the KeyPress and KeyUp event.

KeyPress (KeyAscii)

Parameters

Percent Integer

The ASCII code of the key pressed.

Description

This event occurs when the user presses a key just after the KeyDown and just before the KeyUp event.

KeyUp (KeyCode, Shift)

Parameters

KeyCode Integer

The KeyCode of the key event that occurred.

Shift Integer

The shift state of the keyboard when the key event occurred.

Description

This event occurs when the user presses a key just after the KeyDown and KeyPress event.

Properties

BackColor (Long)

Description

Gets or sets the BackColor of the text control.

BackColor (Long)

Description

Gets or sets the BackColor of the text control.

ForeColor (Long)

Description

Gets or sets the ForeColor of the text control.

SelStart (Long)

Description

Gets or sets the start of the cursor selection in the control.

SelLength (Long)

Description

Gets or sets the length of the cursor selection in the control.

ListCount (Integer) (ReadOnly)

Description

Gets the count of the history list.

HistorySize (Integer)

Description

Gets or sets the maximum number of history items allowed in the list.

AllowDuplicates (Boolean)

Description

Gets or sets whether duplicates are allowed in the history list.

HistoryVisible (Boolean)

Description

Gets or sets whether the history list is visible.

ToolTipText (String)

Description

Gets or sets the ToolTipText of the control.

DefaultHWnd (Long)

Description

Gets or sets the default hWnd of the control for WndProc.

Enabled (Boolean)

Description

Gets or sets whether the control is enabled or not.

ReadOnly (Boolean)

Description

Gets or sets whether the text is read only or not.

Text (String)

Description

Gets or sets the text of the control.

CompleteStyle (AutoCompleteStyles)

Description

Gets or sets the way text completion will occur, possible values are: sNone, sListComplete, sTextComplete

URLEnabled (Boolean)

Description

Gets or sets whether the history may look up items based on expecting URLs.

PathEnabled (Boolean)

Description

Gets or sets whether the history may look up items based on expecting Paths.

Functions

ShowHistory ()

Description

Shows the dropdown window containing the current custom History.

HideHistory ()

Description

Hides the dropdown window containing the current custom History.

SetFocus ()

Description

Sets the focus to the control.

SetToList (lstBox)

Parameters

lstBox Variant

The list to be set to the history list.

Description

Sets the history list of the control.

AddItem (lstText)

Parameters

lstText String

The item to be added to the history.

Description

Add an item to the history list.

RemoveItem (lstIndex)

Parameters

lstIndex Integer

Index of the item to remove.

Description

Removes and item from the history list.

Clear ()

Description

Clears the history list.