<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.gideros.rocks/index.php?action=history&amp;feed=atom&amp;title=UI.TabbedPane</id>
	<title>UI.TabbedPane - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.gideros.rocks/index.php?action=history&amp;feed=atom&amp;title=UI.TabbedPane"/>
	<link rel="alternate" type="text/html" href="https://wiki.gideros.rocks/index.php?title=UI.TabbedPane&amp;action=history"/>
	<updated>2026-11-17T18:00:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.gideros.rocks/index.php?title=UI.TabbedPane&amp;diff=22753&amp;oldid=prev</id>
		<title>MoKaLux: merci hgy29 ;-)</title>
		<link rel="alternate" type="text/html" href="https://wiki.gideros.rocks/index.php?title=UI.TabbedPane&amp;diff=22753&amp;oldid=prev"/>
		<updated>2023-10-17T07:40:18Z</updated>

		<summary type="html">&lt;p&gt;merci hgy29 ;-)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Available since:&amp;#039;&amp;#039;&amp;#039; Gideros 2023.1&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Class:&amp;#039;&amp;#039;&amp;#039; [[UI]]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
Creates a TabbedPane widget.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
UI.TabbedPane.new()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local tabs={&lt;br /&gt;
	{ title=&amp;quot;Header 1&amp;quot;, content= &amp;quot;My first Tab content.&amp;quot; },&lt;br /&gt;
	{ title=&amp;quot;Header 2&amp;quot;, content= &amp;quot;My second Tab content.&amp;quot; },&lt;br /&gt;
	{ title=&amp;quot;Header 3&amp;quot;, content= &amp;quot;My 3rd Tab content.&amp;quot; },&lt;br /&gt;
}&lt;br /&gt;
 &lt;br /&gt;
local vp=UI.Viewport.new()&lt;br /&gt;
vp:setDimensions(480, 320)&lt;br /&gt;
vp:setScrollbar({UI.Viewport.SCROLLBAR.AUTO,UI.Viewport.SCROLLBAR.ALWAYS})&lt;br /&gt;
 &lt;br /&gt;
local gui=UI.TabbedPane.new()&lt;br /&gt;
gui:setLayoutConstraints({fill=1})&lt;br /&gt;
vp:setContent(gui)&lt;br /&gt;
 &lt;br /&gt;
local function builder(v)&lt;br /&gt;
	local hdr=UI.Label.new(v.title)&lt;br /&gt;
	hdr:setStyle({ font=&amp;quot;font.bold&amp;quot;, [&amp;quot;label.color&amp;quot;]=&amp;quot;colHighlight&amp;quot;, colWidgetBack=&amp;quot;colHeader&amp;quot;})&lt;br /&gt;
	local lb=UI.Label.new(v.content,{ flags=FontBase.TLF_BREAKWORDS|FontBase.TLF_REF_TOP })&lt;br /&gt;
	lb:setLayoutConstraints({fill=1})&lt;br /&gt;
	-- Return header and content&lt;br /&gt;
	return hdr,lb&lt;br /&gt;
end&lt;br /&gt;
gui:setData(tabs,builder) --builder function will be called for each value in the values table&lt;br /&gt;
 &lt;br /&gt;
stage:addChild(vp)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{UI}}&lt;/div&gt;</summary>
		<author><name>MoKaLux</name></author>
	</entry>
</feed>