DgsEditSetCaretStyle

From Multi Theft Auto: Wiki

This function is to set the caret style of dgs edit ( 0 is "|"; 1 is "_" ).

Example(0):

This is Text|

Example(1):

This is Text_

Syntax

bool dgsEditSetCaretStyle( element dgsElement, int style )

Required Arguments

  • dgsElement: The dgs edit which you want to set.
  • style The style of the caret.

Returns

This function returns true if succeed, false otherwise.

Example

DGS = exports.dgs
edit = DGS:dgsCreateEdit(200,200,300,100,"text",false)
DGS:dgsEditSetCaretStyle(edit,1)

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