<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/CustomScrollPane:setHorizontalScrolling?action=history&amp;feed=atom</id>
	<title>CustomScrollPane:setHorizontalScrolling - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/CustomScrollPane:setHorizontalScrolling?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CustomScrollPane:setHorizontalScrolling&amp;action=history"/>
	<updated>2026-04-06T21:41:12Z</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=CustomScrollPane:setHorizontalScrolling&amp;diff=57213&amp;oldid=prev</id>
		<title>AriosJentu: Created page with &quot;__NOTOC__ {{Client function}} This function sets Custom Scroll Pane horizontal scrolling with Middle Mouse Button. By default it is ''vertical''. If this value is ''false'', h...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CustomScrollPane:setHorizontalScrolling&amp;diff=57213&amp;oldid=prev"/>
		<updated>2018-07-31T00:56:46Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ {{Client function}} This function sets Custom Scroll Pane horizontal scrolling with Middle Mouse Button. By default it is &amp;#039;&amp;#039;vertical&amp;#039;&amp;#039;. If this value is &amp;#039;&amp;#039;false&amp;#039;&amp;#039;, h...&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 Custom Scroll Pane horizontal scrolling with Middle Mouse Button. By default it is ''vertical''. If this value is ''false'', horizontal scrolling available with holding ''Shift'' + ''Middle Mouse Button''&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 CustomScrollPane:setHorizontalScrolling([bool IsHorizontal])&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Other Arguments === &lt;br /&gt;
*'''IsHorizontal'''  - Boolean value - is scroll with Middle Mouse Button horizontal. Default - ''false''&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
This example sets for Custom Scroll Pane with horizontal scrolling by default with Middle Mouse Button:&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, 220, &amp;quot;Example&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
local SPane = CustomScrollPane.create(5, 25, 240, 190, false, Window)&lt;br /&gt;
&lt;br /&gt;
for i = 0, 4 do&lt;br /&gt;
	for j = 0, 9 do&lt;br /&gt;
		CustomButton.create(5 + 75*i, 5 + 30*j, 70, 25, &amp;quot;Button &amp;quot;..(i+1).. &amp;quot; &amp;quot;..(j+1), false, SPane)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
SPane:setHorizontalScrolling(true)&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>