DgsEditInsertText

From Multi Theft Auto: Wiki

This function deletes a part of text from the edit by index.

Syntax

bool dgsEditInsertText ( element theElement, int index, string text )

Required Arguments

  • theElement: The edit to be changed.
  • index: An integer indicated where the text will be inserted into the edit ( start from 0 ).
  • text: A string that you want to insert into the edit.

Returns

Returns true if the text is inserted into the edit successfully, false otherwise.

Example

DGS = exports.dgs
edit = DGS:dgsCreateEdit(500,200,200,300,"This is a dgs-dxedit",false)
DGS:dgsEditInsertText(edit,1,"Here is DGS")

See Also

Multi Language Supports

Animation

3D Interface

3D Text

Arrow List

Browser

Button

Check Box

Combo Box

Custom Renderer

Edit

Ellipse Detect Area

Detect Area

Grid List

Image

Memo

Label

Progress Bar

Radio Button

Scroll Bar

Scroll Pane

Switch Button

Tab Panel

Window

Plugin

Media Browser

Rounded Rectangle

Color Picker

Blur Box

Effect 3D

Nine Slice

Object Preview

QRCode

mask