Back

AddRadio

Hello World

Adds a radio material input.

rd = MUI.AddRadio( parent, list, width, height, options, p1, color, backColor ) → Object

See CreateRadio, CreateRadioButtons and CreateRadioMaterial for a full documentation. The param p1 depends on the type of an MUI button. It can be a color for normal radio or orientation 'vertical or horizontal' for material and button type.

Example - AddPicker

cfg.Light
cfg.MUI

function OnStart()
{
    lay = MUI.CreateLayout("Linear", "VCenter,FillXY")

    scr = app.AddScroller(lay, 1, 1, "")
    lay2 = MUI.CreateLayout("Linear")

        lst = "Orange,Banana,Mango,Apple"

        rad1 = MUI.AddRadio(lay, lst, 0.75, null, "Default")
        rad2 = MUI.AddRadio(lay, lst, 0.75, null, "Material")
        rad3 = MUI.AddRadio(lay, lst, 0.75, null, "Material", true)
        rad4 = MUI.AddRadio(lay, lst, 0.75, null, "Button")
        rad5 = MUI.AddRadio(lay, lst, 0.75, null, "Button", true)

    scr.AddChild( lay2 )
    app.AddLayout( lay )
}
Copy All       Run      
Number
String:
  hexadecimal: “#rrggbb”, “#aarrggbb”
  colourName: “red”, “green”, ...
String: comma “,” separated: “strings”
String: comma “,” separated: “Buttons” or “Material” or “Normal”
String: “color” or “orientation”
Object: MUI Layout or DS Layout control