<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/OnDgsTabSelect?action=history&amp;feed=atom</id>
	<title>OnDgsTabSelect - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/OnDgsTabSelect?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnDgsTabSelect&amp;action=history"/>
	<updated>2026-05-03T10:52:14Z</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=OnDgsTabSelect&amp;diff=58124&amp;oldid=prev</id>
		<title>Thisdp: Created page with &quot;{{Client event}} __NOTOC__  This event is triggered each time the tab has been changed.  ==Parameters== *'''CurrentItemID:''' The id of current selected tab. *'''PreviousItemI...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnDgsTabSelect&amp;diff=58124&amp;oldid=prev"/>
		<updated>2018-08-15T12:27:55Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Client event}} __NOTOC__  This event is triggered each time the tab has been changed.  ==Parameters== *&amp;#039;&amp;#039;&amp;#039;CurrentItemID:&amp;#039;&amp;#039;&amp;#039; The id of current selected tab. *&amp;#039;&amp;#039;&amp;#039;PreviousItemI...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is triggered each time the tab has been changed.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
*'''CurrentItemID:''' The id of current selected tab.&lt;br /&gt;
*'''PreviousItemID:''' The id of previous selected tab.&lt;br /&gt;
*'''CurrentItemElement:''' The dgs-dxtab element of current selected tab.&lt;br /&gt;
*'''PreviousItemElement:''' The dgs-dxtab element of previous selected tab.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the dgs tab which has just been selected.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DGS = exports.dgs&lt;br /&gt;
tabpanel = DGS:dgsCreateTabPanel(400,200,400,400,false)&lt;br /&gt;
tab1 = DGS:dgsCreateTab(&amp;quot;DGS&amp;quot;,tabpanel)&lt;br /&gt;
tab2 = DGS:dgsCreateTab(&amp;quot;Tab&amp;quot;,tabpanel)&lt;br /&gt;
gdlt2 = DGS:dgsCreateButton(10,10,100,120,&amp;quot;test&amp;quot;,false,tab1,tocolor(255,255,255,255))&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onDgsTabSelect&amp;quot;, tab1, function ( new, old )&lt;br /&gt;
	outputChatBox(&amp;quot;The tab of tab panel has been changed. ( Current: &amp;quot;..new..&amp;quot;; Previous: &amp;quot;..old..&amp;quot; )&amp;quot;)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===DGS events===&lt;br /&gt;
{{DGSEVENTS}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>Thisdp</name></author>
	</entry>
</feed>