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

Browser

Button

Check Box

Combo Box

Custom Renderer

Edit

Detect Area

Grid List

Image

Memo

Label

Progress Bar

Radio Button

Scroll Bar

Scroll Pane

Selector

Switch Button

Tab Panel

Window

Plugin

Blur Box

Color Picker

Canvas

Effect 3D

Media Browser

Mask

Nine Slice

Object Preview Supports

Paste Handler

QRCode

Remote Image

Rounded Rectangle