<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/DgsScrollBarGetTroughWidth?action=history&amp;feed=atom</id>
	<title>DgsScrollBarGetTroughWidth - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/DgsScrollBarGetTroughWidth?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsScrollBarGetTroughWidth&amp;action=history"/>
	<updated>2026-05-03T07:13:56Z</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=DgsScrollBarGetTroughWidth&amp;diff=74001&amp;oldid=prev</id>
		<title>Thisdp: Created page with &quot;{{client function}} This function gets the width of trough.  ==Syntax== &lt;syntaxhighlight lang=&quot;lua&quot;&gt; float dgsScrollBarGetTroughWidth( element scrollBar [, bool relative ] ) &lt;/syntaxhighlight&gt;  DGS Scroll Detail ===Required Arguments=== *'''scrollBar:''' The dgs scrollbar you want to get trough width from. ===Optional Arguments=== *'''relative:''' This is whether sizes and positioning are relative. If this is true, then width mus...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsScrollBarGetTroughWidth&amp;diff=74001&amp;oldid=prev"/>
		<updated>2022-02-07T06:05:07Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{client function}} This function gets the width of trough.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; float dgsScrollBarGetTroughWidth( element scrollBar [, bool relative ] ) &amp;lt;/syntaxhighlight&amp;gt;  &lt;a href=&quot;/wiki/File:DGS_ScrollBarDetail_A.png&quot; title=&quot;File:DGS ScrollBarDetail A.png&quot;&gt;thumb|DGS Scroll Detail&lt;/a&gt; ===Required Arguments=== *&amp;#039;&amp;#039;&amp;#039;scrollBar:&amp;#039;&amp;#039;&amp;#039; The dgs scrollbar you want to get trough width from. ===Optional Arguments=== *&amp;#039;&amp;#039;&amp;#039;relative:&amp;#039;&amp;#039;&amp;#039; This is whether sizes and positioning are relative. If this is true, then width mus...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{client function}}&lt;br /&gt;
This function gets the width of trough.&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 dgsScrollBarGetTroughWidth( element scrollBar [, bool relative ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:DGS_ScrollBarDetail_A.png|thumb|DGS Scroll Detail]]&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''scrollBar:''' The dgs scrollbar you want to get trough width from.&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''relative:''' This is whether sizes and positioning are relative. If this is true, then width must be between 0 and 1, representing sizes relative to the scroll bar.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a float indicates the trough width if successful, ''false'' otherwise.&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;
scrollbar= DGS:dgsCreateScrollBar(0.29, 0.30, 0.44, 0.04, true, true)&lt;br /&gt;
local width = DGS:dgsScrollBarGetTroughWidth(scrollbar,true)&lt;br /&gt;
outputChatBox(width)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>Thisdp</name></author>
	</entry>
</feed>