OnDgsComboBoxStateChange

From Multi Theft Auto: Wiki
Revision as of 15:33, 9 April 2018 by Thisdp (talk | contribs) (Created page with "{{Client event}} __NOTOC__ This event is triggered each time the dgs combo box state has changed. ==Parameters== <syntaxhighlight lang="lua"> bool state </syntaxhighlight>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This event is triggered each time the dgs combo box state has changed.

Parameters

bool state

Source

The source of this event is the dgs combo box.

Example

DGS = exports.dgs

comboBox = DGS:dgsCreateComboBox(500,400,200,30,false)
for i=1,20 do
	DGS:dgsComboBoxAddItem(comboBox ,i)
end

function onStateChanged(state)
	outputChatBox(state == true and "Show" or "Hide")
end
addEventHandler("onDgsComboBoxStateChange", comboBox, onStateChanged)

See Also

DGS events

General

Check Box

Combo Box

Drag'N Drop

Edit

Grid List

Menu

Selector

Mouse

Radio Button

Switch Button

Tab

Animation

Plugin

Media

Color Picker

QRCode

Remote Image

Client event functions