guiMemoSetVerticalScrollPosition | Multi Theft Auto: Wiki Skip to content

guiMemoSetVerticalScrollPosition

Client-side
Server-side
Shared

Pair: guiMemoGetVerticalScrollPosition

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function is used to set the vertical scroll position of a memo as a percentage.

Syntax

guiMemoSetVerticalScrollPosition ( )

Code Examples

client

This example sets the position of a memo called "theMemo" created withguiCreateMemo, and outputs it to the chatbox.

local theMemo = guiCreateMemo( 0, 0, 200, 100, [[Insert
some
long
text
here]], false )
if ( theMemo ) then
guiMemoSetVerticalScrollPosition( theMemo, 33.3 ) -- A third from the top
local position = guiMemoGetVerticalScrollPosition( theMemo )
outputChatBox( "Current position of scroll pane: " .. position .. "%" )
else
outputChatBox( "Memo not found!" )
end

See Also

GUI Functions