OnDgsSizeChange

From Multi Theft Auto: Wiki
Revision as of 09:21, 18 March 2018 by Thisdp (talk | contribs) (Created page with "{{Client event}} __NOTOC__ This event is triggered each time the size of a DGS element changed. ==Parameters== ''None'' ==Source== The source...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This event is triggered each time the size of a DGS element changed.

Parameters

None

Source

The source of this event is the DGS element whose size has changed.

Example

This example would output to the chatbox what the player sized.

DGS = exports.dgs

local window = DGS:dgsCreateWindow(200,200,600,400,"Test Window",false)

addEventHandler("onDgsSizeChange",root,function()
	outputChatBox("You have sized :"..DGS:dgsGetType(source))
end)

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