DgsComboBoxSetScrollPosition

From Multi Theft Auto: Wiki

This function set scroll position of dgs combo box.

Syntax

bool dgsComboBoxSetScrollPosition( element comboBox [, float vertical = nil ] )

Required Arguments

  • comboBox: The dgs combo box element to set.

Optional Arguments

  • vertical: The vertical scroll bar position. If set to nil, nothing will happen ( remain the position ).

Returns

Returns true if succeed, 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
DGS:dgsComboBoxSetScrollPosition(comboBox,50)

See Also

Multi Language Supports

Animation

3D Interface

3D Text

Arrow List

Browser

Button

Check Box

Combo Box

Custom Renderer

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

Nine Slice

Object Preview

QRCode

mask