<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/CustomTabPanel:getTabFromText?action=history&amp;feed=atom</id>
	<title>CustomTabPanel:getTabFromText - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/CustomTabPanel:getTabFromText?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CustomTabPanel:getTabFromText&amp;action=history"/>
	<updated>2026-04-04T11:03:42Z</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:getTabFromText&amp;diff=57056&amp;oldid=prev</id>
		<title>AriosJentu: Created page with &quot;__NOTOC__ {{Client function}} This function gets Tab from title of Custom Tab Panel.  == Syntax == &lt;syntaxhighlight lang=&quot;lua&quot;&gt; ctab CustomTabPanel:getTabFromText(string TabTi...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CustomTabPanel:getTabFromText&amp;diff=57056&amp;oldid=prev"/>
		<updated>2018-07-27T05:49:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ {{Client function}} This function gets Tab from title of Custom Tab Panel.  == Syntax == &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; ctab CustomTabPanel:getTabFromText(string TabTi...&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 Tab from title 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;
ctab CustomTabPanel:getTabFromText(string TabTitle)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required Arguments === &lt;br /&gt;
*'''TabTitle''' - String of Tab title&lt;br /&gt;
&lt;br /&gt;
=== Returns ===&lt;br /&gt;
Returns ''ctab'' element - first tab, what's title is equal to what sends in arguments.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
[[File:CFromTabEx.png|thumb|right|Code Example]]&lt;br /&gt;
This example creates window with tab panel with 3 tabs, and in one tab creates image:&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, 200, &amp;quot;Example&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
local TabPanel = CustomTabPanel.create(5, 25, 240, 170, false, Window)&lt;br /&gt;
&lt;br /&gt;
TabPanel:addTab(&amp;quot;First Tab&amp;quot;)&lt;br /&gt;
TabPanel:addTab(&amp;quot;Second Tab&amp;quot;)&lt;br /&gt;
TabPanel:addTab(&amp;quot;Third Tab&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
local Tab = TabPanel:getTabFromText(&amp;quot;Second Tab&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
local Image = GuiStaticImage.create(5, 5, 40, 40, pane, false, Tab)&lt;br /&gt;
Image:setProperty(&amp;quot;ImageColours&amp;quot;, &amp;quot;tl:FFD26767 tr:FFD26767 bl:FFD26767 br:FFD26767&amp;quot;)&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>