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

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