DgsScrollPaneGetScrollPosition

From Multi Theft Auto: Wiki
Jump to: navigation, search

This function get scroll position of dgs scroll pane.

Syntax

float, float dgsScrollPaneGetScrollPosition( element scrollPane )

Required Arguments

  • scrollPane: The dgs scroll pane element to get from.

Returns

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

Example

DGS = exports.dgs

local scrollPane = DGS:dgsCreateScrollPane ( 0.45, 0.45, 0.15, 0.15, true ) 
local label = DGS;dgsCreateLabel(0.2,5,0.2,0.2,"test",true,scrollPane)
local vertical,horizontal = DGS:dgsScrollPaneGetScrollPosition(scrollPane)
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