<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/CustomTabPanel:getTabsMinLength?action=history&amp;feed=atom</id>
	<title>CustomTabPanel:getTabsMinLength - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/CustomTabPanel:getTabsMinLength?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CustomTabPanel:getTabsMinLength&amp;action=history"/>
	<updated>2026-04-09T17:01:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CustomTabPanel:getTabsMinLength&amp;diff=57061&amp;oldid=prev</id>
		<title>AriosJentu: Created page with &quot;__NOTOC__ {{Client function}} This function gets minimal length of one tab block of Custom Tab Panel.  == Syntax == &lt;syntaxhighlight lang=&quot;lua&quot;&gt; float CustomTabPanel:setTabsMi...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CustomTabPanel:getTabsMinLength&amp;diff=57061&amp;oldid=prev"/>
		<updated>2018-07-27T06:10:45Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ {{Client function}} This function gets minimal length of one tab block of Custom Tab Panel.  == Syntax == &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; float CustomTabPanel:setTabsMi...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function gets minimal length of one tab block of Custom Tab Panel.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float CustomTabPanel:setTabsMinLength()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Returns === &lt;br /&gt;
Returns minimal length of tab block in pixels&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
[[File:CTabSizeEx.png|thumb|right|Code Example]]&lt;br /&gt;
This example creates window with 3 tab panels with different minimal tab sizes and prints them:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local Window = CustomWindow.create(50, 50, 250, 190, &amp;quot;Example&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
local TabPanel = {}&lt;br /&gt;
TabPanel[1] = CustomTabPanel.create(5, 25, 240, 50, false, Window)&lt;br /&gt;
TabPanel[2] = CustomTabPanel.create(5, 80, 240, 50, false, Window)&lt;br /&gt;
TabPanel[3] = CustomTabPanel.create(5, 135, 240, 50, false, Window)&lt;br /&gt;
&lt;br /&gt;
for i = 1, 3 do&lt;br /&gt;
	TabPanel[i]:addTab(&amp;quot;First Tab&amp;quot;)&lt;br /&gt;
	TabPanel[i]:addTab(&amp;quot;Second Tab&amp;quot;)&lt;br /&gt;
	TabPanel[i]:addTab(&amp;quot;Third Tab&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
TabPanel[1]:setTabsMinLength(50)&lt;br /&gt;
TabPanel[2]:setTabsMinLength(90)&lt;br /&gt;
TabPanel[3]:setTabsMinLength(120)&lt;br /&gt;
&lt;br /&gt;
outputChatBox(TabPanel[1]:getTabsMinLength())&lt;br /&gt;
outputChatBox(TabPanel[2]:getTabsMinLength())&lt;br /&gt;
outputChatBox(TabPanel[3]:getTabsMinLength())&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
{{CWSFUNCS}}&lt;/div&gt;</summary>
		<author><name>AriosJentu</name></author>
	</entry>
</feed>