DgsEditGetMaxLength

From Multi Theft Auto: Wiki

This function gets the maximum text length that can be typed into an edit box.

Syntax

bool dgsEditGetMaxLength ( element theElement )

Required Arguments

  • theElement: The dgs-dxedit to be got.

Returns

Returns an integer if the max length was get successfully, false otherwise.

Example

DGS = exports.dgs

editBox = DGS:dgsCreateEdit( 0.3, 0.1, 0.4, 0.1, "Type your message here!", true )
DGS:dgsEditSetMaxLength ( editBox, 128 )
outputChatBox("Max Length: "..DGS:dgsEditGetMaxLength ( editBox ))

See Also

Multi Language Supports

Animation

3D Interface

3D Text

Arrow List

Browser

Button

Check Box

Combo Box

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