DgsEditSetAutoComplete

From Multi Theft Auto: Wiki

This function sets auto complete table to the dgs edit.

Syntax

bool dgsEditSetAutoComplete( element edit, table autoCompleteTable )

Required Arguments

  • edit: A dgs edit you wish to set the auto complete table to.
  • autoCompleteTable: A table of the auto complete list, the structure is as follows:
autoCompleteTable = {
 [string1] = isCapitalSensitive,
 [string2] = isCapitalSensitive,
 ……
}

Return

Returns true if successfully, false otherwise.

Example

DGS = exports.dgs
edit = DGS:dgsCreateEdit(100,100,50,50,"",false)
local autoCompleteTable = {
 ["DGS Edit AutoComplete"] = false,  --Auto Complete String: "DGS Edit AutoComplete" with Capital sensitive disabled.
}
DGS:dgsEditSetAutoComplete(edit,autoCompleteTable)

See Also

Multi Language Supports

Animation

3D Interface

3D Text

Browser

Button

Check Box

Combo Box

Custom Renderer

Edit

Detect Area

Grid List

Image

Memo

Label

Progress Bar

Radio Button

Scroll Bar

Scroll Pane

Switch Button

Tab Panel

Window

Plugin

Blur Box

Color Picker

Canvas

Effect 3D

Media Browser

Mask

Nine Slice

Object Preview Supports

QRCode

Remote Image

Rounded Rectangle