Difference between revisions of "UI.Calendar"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2023.1<br/> '''Class:''' UI<br/> === Description === Creates Calendar widgets. The widget can be a '''Calendar''' or a '''DatePic...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 9: | Line 9: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | === | + | === Examples === |
'''A Calendar''' | '''A Calendar''' | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
Line 36: | Line 36: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | {{ | + | {{UI}} |
Latest revision as of 07:18, 17 October 2023
Available since: Gideros 2023.1
Class: UI
Description
Creates Calendar widgets. The widget can be a Calendar or a DatePicker.
UI.Calendar.new()
Examples
A Calendar
local gui = UI.Calendar.new()
gui:setPosition(50, 50)
stage:addChild(gui)
--local myday = os.time()
local myday = os.time({year=2003, month=7, day=14, hour=8, min=10, sec=0,})
gui:setDate(myday)
local mydate = os.date("*t", gui:getDate())
print(mydate.month)
print(gui.month) -- shorter
A DatePicker
local gui = UI.DatePicker.new()
gui:setPosition(50, 50)
gui:setDate(os.time({year=2003, month=8, day=14, hour=8, min=10, sec=0,}))
print(gui:getDate())
local screen=UI.Screen.new() -- needed to add the calendar
screen:ui(gui)
- UI.Accordion
- UI.Animation
- UI.Bar
- UI.Behavior
- UI.Border
- UI.BreadCrumbs
- UI.Builder
- UI.Button
- UI.Calendar
- UI.Checkbox
- UI.Combobox
- UI.ImageText
- UI.Keyboard
- UI.Label
- UI.Panel
- UI.Progress
- UI.Slider
- UI.Spinner
- UI.Splitpane
- UI.TabbedPane
- UI.Table
- UI.TextField
- UI.TimePicker
- UI.Toolbox
- UI.Tree
- UI.Viewport
- UI.WeekSchedule