DgsComboBoxGetScrollPosition

From Multi Theft Auto: Wiki

This function get scroll position of dgs combo box.

Syntax

float dgsComboBoxGetScrollPosition( element comboBox )

Required Arguments

  • comboBox: The dgs combo box element to get from.

Returns

Returns a float value indicate vertical scroll position, false otherwise

Example

DGS = exports.dgs

local comboBox= DGS:dgsCreateComboBox ( 0.45, 0.45, 0.15, 0.15,"test", true ) 
for i=1,100 do
    DGS:dgsComboBoxAddItem(comboBox, i)
end
local vertical = DGS:dgsComboBoxGetScrollPosition(comboBox)
outputChatBox("vertical:"..vertical)

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