DgsSetPropertyInherit

From Multi Theft Auto: Wiki

This function sets the value of a specific property of a DGS element and affects its children. For a list of properties and their meaning, see the DGS properties page.

Note: If you push a value improperly, errors or warnings will occur, which may cause lag and debug info spamming.

Syntax

string dgsSetPropertyInherit ( element/table dgsElement, string property, mixed value [, mixed arg1, mixed arg2 ... ] )

Required Arguments

  • dgsElement: the DGS element or a list of DGS elements you wish to set a property to.
  • property: the name of of property you want the value to.
  • value: the value you want to set.

Optional Arguments

  • arg...: extra value of some properties.

Returns

If the function succeeds, it returns true, false otherwise.

Example

This example creates a label whose text can be changed by itself.

DGS = exports.dgs
label = DGS:dgsCreateLabel(20, 200, 150, 30, "Test1", false)
label2 = DGS:dgsCreateLabel(0, 800, 150, 30, "Test2", false, label2)
dgsSetPropertyInherit(label,"text","We are the same")

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