DgsDetachFromGridList

From Multi Theft Auto: Wiki

This function allows you to detach a specific dgs element from a dgs gridlist.

Syntax

bool dgsDetachFromGridList( element dgsElement )

Required Arguments

  • dgsElement: An element you want to detach.

Returns

Returns true if successful, false otherwise.

Example

DGS = exports.dgs

gridlist= DGS:dgsCreateGridList(50,50,100,100,false) -- create a gridlist
row = DGS:dgsGridListAddRow(gridlist) -- create a row for the gridlist
column = DGS:dgsGridListAddColumn(gridlist,"Title",1) -- create a column for the gridlist
label = DGS:dgsCreateLabel(0,200,100,100,"label", false) -- create a label
DGS:dgsAttachToGridList(label,gridlist,row,column) -- attach label to gridlist
DGS:dgsDetachFromGridList(label) -- detach

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

Paste Handler

QRCode

Remote Image

Rounded Rectangle