DgsMemoSeekPosition

From Multi Theft Auto: Wiki

This function transform the position (index and line) correctly of the text in memo.

Syntax

int int dgsMemoSeekPosition ( element dxMemo, int index, int line [, bool transformLine = true ] )

Required Arguments

  • dxMemo: The dgs-dxmemo you want to get the data from.
  • index: An integer of index to be transformed (index >= 0).
  • line: An integer of line to be transformed (line >= 1).

Optional Arguments

  • transformLine: A bool indicates whether the line will be changed when the index is out of range in current line.

Example

This example creates a combo box in the center of the screen.

DGS = exports.dgs 

memo = DGS:dgsCreateMemo(0.29, 0.30, 0.44, 0.04, "", true)
DGS:dgsSetText(memo,[[
This is a test script.
Example
Function: dgsMemoSeekPosition
]])

local index,line = dgsMemoSeekPosition(memo,40,1)
outputChatBox("Old Value> Index = 40; Line = 1")
outputChatBox("New Value> Index = "..index,,"; Line = "..line)

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