Difference between revisions of "UI.Toolbox"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2023.1<br/> '''Class:''' UI<br/> === Description === Creates a Toolbox widget. <syntaxhighlight lang="lua"> UI.Toolbox.new(header...") |
|||
Line 40: | Line 40: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | {{ | + | {{UI}} |
Latest revision as of 07:21, 17 October 2023
Available since: Gideros 2023.1
Class: UI
Description
Creates a Toolbox widget.
UI.Toolbox.new(header,direction)
Parameters
header: (table) header parameters
direction: (bool) is the Toolbox widget horizontal? (default = false)
Example
local header={
class=UI.Image,
Image="ui/icons/kbd_hide.png",
layout={ width="2is", height="2is", },
data={ "A","B","C"},
}
local gui = UI.Toolbox.new(header)
local header2={
class=UI.Image,
Image="ui/icons/ic_ref.png",
layout={ width="2is", height="2is", },
}
local gui2 = UI.Toolbox.new(header2)
gui:setColor(0x5c5c5c)
gui:setPosition(50, 50)
gui2:setColor(0x5c5c5c)
gui2:setPosition(69, 50)
local screen=UI.Screen.new() -- needed to add the TimePicker
screen:ui(gui)
screen:ui(gui2)
- 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