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

Arrow List

Browser

Button

Check Box

Combo Box

Edit

Ellipse Detect Area

Detect Area

Grid List

Image

Memo

Label

Progress Bar

Radio Button

Scroll Bar

Scroll Pane

Switch Button

Tab Panel

Window

Plugin

Media Browser

Rounded Rectangle

Color Picker

Blur Box

Effect 3D