<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/CustomScrollPane:getHorizontalScrollPosition?action=history&amp;feed=atom</id>
	<title>CustomScrollPane:getHorizontalScrollPosition - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/CustomScrollPane:getHorizontalScrollPosition?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CustomScrollPane:getHorizontalScrollPosition&amp;action=history"/>
	<updated>2026-04-04T08:29:50Z</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:getHorizontalScrollPosition&amp;diff=57318&amp;oldid=prev</id>
		<title>AriosJentu: Created page with &quot;__NOTOC__ {{Client function}} This function gets Custom Scroll Pane horizontal scroll position.  == Syntax == &lt;syntaxhighlight lang=&quot;lua&quot;&gt; float CustomScrollPane:getHorizontal...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CustomScrollPane:getHorizontalScrollPosition&amp;diff=57318&amp;oldid=prev"/>
		<updated>2018-08-04T13:48:30Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ {{Client function}} This function gets Custom Scroll Pane horizontal scroll position.  == Syntax == &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; float CustomScrollPane:getHorizontal...&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 Custom Scroll Pane horizontal scroll position.&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 CustomScrollPane:getHorizontalScrollPosition()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Returns ===&lt;br /&gt;
Returns custom Scroll Pane horizontal scroll position.	&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
[[Image:CSPaneWidget.png|thumb|right|Code Example]]&lt;br /&gt;
This example creates window with Scroll Pane and prints its scroll position on scrolling:&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:setColorScheme(Themes.Dark.Red)&lt;br /&gt;
SPane:addEvent(&amp;quot;onClientGUIChanged&amp;quot;, function()&lt;br /&gt;
	outputChatBox(SPane:getHorizontalScrollPosition())&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
{{CWSFUNCS}}&lt;/div&gt;</summary>
		<author><name>AriosJentu</name></author>
	</entry>
</feed>