DgsGridListGetColumnCount

From Multi Theft Auto: Wiki

This function returns the number of columns in a dgs grid list.

Syntax

int dgsGridListGetColumnCount ( element gridList )

Required Arguments

  • gridList: The dgs grid list to get the number of columns from.

Returns

Returns the number of columns if the function is successful, false otherwise.

Example

DGS = exports.dgs

local list = DGS:dgsCreateGridList ( 0.80, 0.10, 0.15, 0.60, true ) 
for i=1,10 do
	DGS:dgsGridListAddColumn( list, "Test", 0.85 ) 
end
outputChatBox("Columns :"..DGS:dgsGridListGetColumnCount(list))

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

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