OnDgsRadioButtonChange

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

This event is triggered each time the dgs radio button state has changed.

Parameters

bool state

Source

The source of this event is the dgs radio button.

Example

DGS = exports.dgs

local rb1 = dgsCreateRadioButton(300,300,200,30,"RadioButton Test 1",false)
local rb2 = dgsCreateRadioButton(300,320,200,30,"RadioButton Test 2",false)

function onStateChanged(state)
	if source == rb1 and state == true then
		outputChatBox("Selected RadioButton 1")
	end
end
addEventHandler("onDgsRadioButtonChange", root, 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