DgsGetSide

From Multi Theft Auto: Wiki

This function returns the position of the DGS element side.

Syntax

string dgsGetSide( element theElement, bool topleft )

Required Arguments

  • theElement: The DGS element to be checked.
  • topleft: The position of the DGS element in the window.

Returns

Returns false if the element passed is invalid or a string containing one of the following:

Example

DGS = exports.dgs

local window = DGS:dgsCreateWindow(0.40, 0.33, 0.20, 0.21, "DGS Window", true)
local button = DGS:dgsCreateButton(0.0, 0.0, 0.2, 0.1, "OK", true, window)

DGS:dgsSetSide(button, "right", true)

local buttonSide = dgs:dgsGetSide(button)

outputChatBox("dgsSide " .. buttonSide)

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