DgsComboBoxGetViewCount

From Multi Theft Auto: Wiki

This function gets the viewed items count of the drop-down box of combo box.

Syntax

bool dgsComboBoxGetViewCount( element comboBox )

Required Arguments

  • comboBox: the combo box you want to get from.

Returns

Returns the numbers of viewed items count if dgsComboBoxSetViewCount has been used, false otherwise.

Example

DGS = exports.dgs
local combo = DGS:dgsCreateComboBox (200,30,200,30,"Text")
for i=1,35 do
	DGS:dgsComboBoxAddItem(combo,"# - "..tostring(i))
end
DGS:dgsComboBoxSetViewCount(combo,5)

outputChatBox ("viewCount is: "..DGS:dgsComboBoxGetViewCount(combo))

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

QRCode

Remote Image

Rounded Rectangle