Adds a picker dialog such as time, date or color.
Example - AddPicker
cfg.Light
cfg.MUI
function OnStart()
{
lay = MUI.CreateLayout("Linear", "VCenter,FillXY")
ttime = MUI.AddTextEdit(lay, 0.7, "outline", "Enter time", true)
ttime.SetOnTouch( ShowTimePicker )
tdate = MUI.AddTextEdit(lay, 0.7, "outline", "Enter date", true)
tdate.SetOnTouch( ShowDatePicker )
tcolor = MUI.AddTextEdit(lay, 0.7, "outline", "Enter color", true)
tcolor.SetOnTouch( ShowColorPicker )
app.AddLayout( lay )
tPkr = MUI.AddPicker(ttime, "time")
dPkr = MUI.AddPicker(tdate, "date")
cPkr = MUI.AddPicker(tcolor, "color")
}
function ShowTimePicker()
{
tPkr.Show()
}
function ShowDatePicker()
{
dPkr.Show()
}
function ShowColorPicker()
{
cPkr.Show()
}