DgsGridListGetScrollPosition

From Multi Theft Auto: Wiki

This function get scroll position of dgs grid list.

Syntax

float, float dgsGridListGetScrollPosition( element gridList )

Required Arguments

  • gridList: The dgs grid list element to get from.

Returns

Returns two float values indicate vertical and horizontal scroll position, false otherwise

Example

DGS = exports.dgs

local testList = DGS:dgsCreateGridList ( 0.45, 0.45, 0.15, 0.15, true ) 
DGS:dgsGridListAddColumn(testList,"test",0.5)
for i=1,100 do
    local row = DGS:dgsGridListAddRow(testList)
    DGS;dgsGridListSetItemText(testList,i,1,i)
end
local vertical,horizontal = DGS:dgsGridListGetScrollPosition(testList)
outputChatBox("vertical:"..vertical.." ; horizontal:"..horizontal)

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