DgsEditSetTypingSound

From Multi Theft Auto: Wiki

This function applies a typing sound to a dgs edit.

Syntax

bool dgsEditSetTypingSound( element dxEdit, string soundPath )

Required Arguments

  • dxEdit: The dgs-dxedit you want to set.
  • soundPath : A string of the path of the sound ( url is supported ) nil for disabled

Returns

Returns true if succeed, false otherwise.

Example

DGS = exports.dgs 

edit = DGS:dgsCreateEdit(0.29, 0.30, 0.44, 0.04, "", true)
DGS:dgsEditSetTypingSound(edit,"test.wav") --You can add a sound file for test

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

Selector

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