UI.Toolbox

From GiderosMobile

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)