DgsRadioButtonGetSelected

From Multi Theft Auto: Wiki

This function gets a radio button's selection state.

Syntax

bool dgsRadioButtonGetSelected( element RadioButton)

Required Arguments

  • RadioButton: The radio button you wish to retrieve the selection state of.

Returns

Returns true if the radio button is selected, false if it is not.


Example

DGS = exports.dgs 
button1 = DGS:dgsCreateRadioButton( 243, 204, 36, 16, "test1", false ) --Create a radio button
button2 = DGS:dgsCreateRadioButton( 243, 234, 36, 16, "test2", false ) --Create another radio button
addEventHandler("onDgsMouseClickUp",root,function()
	if DGS:dgsRadioButtonGetSelected( button1 ) then
		outputChatBox("Radio Button 1 is checked")
	else
		outputChatBox("Radio Button 1 is unchecked")
	end
end)

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

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