Difference between revisions of "UI.TimePicker"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2023.1<br/> '''Class:''' UI<br/> === Description === Creates a TimePicker widget. <syntaxhighlight lang="lua"> UI.TimePicker.new(...")
 
 
Line 23: Line 23:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
{{GIDEROS IMPORTANT LINKS}}
+
{{UI}}

Latest revision as of 07:21, 17 October 2023

Available since: Gideros 2023.1
Class: UI

Description

Creates a TimePicker widget.

UI.TimePicker.new(allowNil)

Parameters

allowNil: (bool) starts with an empty time (default = false)

Example

local gui = UI.TimePicker.new()
gui:setDimensions(96, 40)
gui:setColor(0x5c5c5c)
gui:setPosition(50, 50)

local screen=UI.Screen.new() -- needed to add the TimePicker
screen:ui(gui)