<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/CustomComboBox:setItemText?action=history&amp;feed=atom</id>
	<title>CustomComboBox:setItemText - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/CustomComboBox:setItemText?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CustomComboBox:setItemText&amp;action=history"/>
	<updated>2026-04-06T11:16:58Z</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=CustomComboBox:setItemText&amp;diff=58049&amp;oldid=prev</id>
		<title>AriosJentu: Created page with &quot;__NOTOC__ {{Client function}} This function sets for Custom Combo Box text for item.  == Syntax == &lt;syntaxhighlight lang=&quot;lua&quot;&gt; nil CustomComboBox:setItemText(string/ccbitem I...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CustomComboBox:setItemText&amp;diff=58049&amp;oldid=prev"/>
		<updated>2018-08-14T07:09:45Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ {{Client function}} This function sets for Custom Combo Box text for item.  == Syntax == &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; nil CustomComboBox:setItemText(string/ccbitem I...&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 sets for Custom Combo Box text for item.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
nil CustomComboBox:setItemText(string/ccbitem Item, string Text)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*'''Item''' - String - item text, or Custom Combo Box Item (''ccbitem''), what returns with [[CustomComboBox:addItem]]&lt;br /&gt;
*'''Text''' - String - new item text&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
This example creates window with two Combo Boxes, and makes them selected item with 2 different ways (arguments), and change for one item text:&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, 120, 95, &amp;quot;Example&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
local ComboBoxOne = CustomComboBox.create(5, 25, 110, 30, &amp;quot;Combo Box&amp;quot;, false, Window)&lt;br /&gt;
local ComboBoxTwo = CustomComboBox.create(5, 60, 110, 30, &amp;quot;Select&amp;quot;, false, Window)&lt;br /&gt;
&lt;br /&gt;
ComboBoxOne:addItem(&amp;quot;Hello World&amp;quot;)&lt;br /&gt;
ComboBoxOne:addItem(&amp;quot;Another Item&amp;quot;)&lt;br /&gt;
ComboBoxOne:setMaxHeight(100)&lt;br /&gt;
&lt;br /&gt;
local Item = ComboBoxTwo:addItem(&amp;quot;Hello World&amp;quot;)&lt;br /&gt;
ComboBoxTwo:addItem(&amp;quot;Quick Brown Fox&amp;quot;)&lt;br /&gt;
ComboBoxTwo:addItem(&amp;quot;Jumps Over&amp;quot;)&lt;br /&gt;
ComboBoxTwo:addItem(&amp;quot;The Lazy Dog&amp;quot;)&lt;br /&gt;
ComboBoxTwo:setMaxHeight(200)&lt;br /&gt;
&lt;br /&gt;
ComboBoxOne:setSelectedItem(&amp;quot;Hello World&amp;quot;)&lt;br /&gt;
ComboBoxTwo:setSelectedItem(Item)&lt;br /&gt;
&lt;br /&gt;
ComboBoxTwo:setItemText(Item, &amp;quot;World, Hello&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>