<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/DgsMemoGetHorizontalScrollPosition?action=history&amp;feed=atom</id>
	<title>DgsMemoGetHorizontalScrollPosition - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/DgsMemoGetHorizontalScrollPosition?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsMemoGetHorizontalScrollPosition&amp;action=history"/>
	<updated>2026-04-04T00:21:31Z</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=DgsMemoGetHorizontalScrollPosition&amp;diff=63777&amp;oldid=prev</id>
		<title>XLive: Created page with &quot;{{client function}} This function is used to get the horizontal scroll position from a memo  ==Syntax== &lt;syntaxhighlight lang=&quot;lua&quot;&gt; float dgsMemoGetHorizontalScrollPosition (...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsMemoGetHorizontalScrollPosition&amp;diff=63777&amp;oldid=prev"/>
		<updated>2019-08-16T11:22:42Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{client function}} This function is used to get the horizontal scroll position from a memo  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; float dgsMemoGetHorizontalScrollPosition (...&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 is used to get the horizontal scroll position from a memo&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 dgsMemoGetHorizontalScrollPosition ( element dgsMemo )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/DGS/Memo|dgsMemo]]:getHorizontalScrollPosition|horizontalScrollPosition|dgsMemoSetHorizontalScrollPosition}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''dgsMemo''':The memo you want to set the horizontal scroll position from&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a float ranging between 0 and 100, or false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example Gets the position of the horizontal scroll and outputs it to the chatbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local DGS = exports.dgs&lt;br /&gt;
local memo = DGS:dgsCreateMemo(0.80, 0.10, 0.15, 0.60,[[1&lt;br /&gt;
	2&lt;br /&gt;
	3&lt;br /&gt;
	4&lt;br /&gt;
	5&lt;br /&gt;
	6&lt;br /&gt;
	7&lt;br /&gt;
	8&lt;br /&gt;
	9&lt;br /&gt;
	10&lt;br /&gt;
	11&lt;br /&gt;
	12&lt;br /&gt;
	13&lt;br /&gt;
	14&lt;br /&gt;
	15&lt;br /&gt;
	16&lt;br /&gt;
	17&lt;br /&gt;
	18&lt;br /&gt;
	19&lt;br /&gt;
	20&lt;br /&gt;
	21&lt;br /&gt;
	22&lt;br /&gt;
	23&lt;br /&gt;
	24&lt;br /&gt;
	25&lt;br /&gt;
	26&lt;br /&gt;
	27]], true) -- Create the memo&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
if (memo) then -- if the grid list exist then&lt;br /&gt;
    local postion = DGS:dgsMemoGetHorizontalScrollPosition(memo) -- get the horizontal scroll position&lt;br /&gt;
    outputChatBox ( &amp;quot;Current position of the horizontal scroll:&amp;quot; ..tostring(position).. &amp;quot;%&amp;quot; ) -- output to the chatbox&lt;br /&gt;
else &lt;br /&gt;
    outputChatBox (&amp;quot;Memo not found!&amp;quot;) -- if the memo was not found&lt;br /&gt;
end&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>XLive</name></author>
	</entry>
</feed>