DgsEditGetMasked

From Multi Theft Auto: Wiki

This function get the state of edit box masking (covering up the text being typed).

Syntax

bool dgsEditGetMasked ( element theElement )

Required Arguments

  • theElement: The dgs edit box to get.

Returns

Returns true if the edit box is masked, false if the edit box is not masked.

Example

DGS = exports.dgs
-- create a dgs edit box and define it as "editBox"
editBox = DGS:dgsCreateEdit( 0.3, 0.1, 0.4, 0.1, "", true )
-- ensure that it is masked
DGS:dgsEditSetMasked ( editBox, true )

-- whether it is masked
maskedState = DGS:dgsEditGetMasked ( editBox )
outputChatBox("editBox is "..(maskedState and "" or "not ").."masked")

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