GuiMemoGetVerticalScrollPosition: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(Add missing OOP info) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{client function}} | {{client function}} | ||
{{New feature/item|3.0156|1.5.5|13771|This function is used to get the vertical scroll position of a memo as a percentage.}} | |||
{{New feature/item|3.0156|1.5.5| | |||
==Syntax== | ==Syntax== | ||
Line 9: | Line 6: | ||
float guiMemoGetVerticalScrollPosition ( gui-memo theMemo ) | float guiMemoGetVerticalScrollPosition ( gui-memo theMemo ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{OOP||[[GuiMemo]]:getVerticalScrollPosition|verticalScrollPosition|guiMemoSetVerticalScrollPosition}} | |||
===Required Arguments=== | ===Required Arguments=== | ||
*'''theMemo''': | *'''theMemo''': the [[guiCreateMemo|memo]] you want to know the vertical scroll position of. | ||
===Returns=== | ===Returns=== |
Latest revision as of 13:58, 10 August 2021
This function is used to get the vertical scroll position of a memo as a percentage.
Syntax
float guiMemoGetVerticalScrollPosition ( gui-memo theMemo )
OOP Syntax Help! I don't understand this!
- Method: GuiMemo:getVerticalScrollPosition(...)
- Variable: .verticalScrollPosition
- Counterpart: guiMemoSetVerticalScrollPosition
Required Arguments
- theMemo: the memo you want to know the vertical scroll position of.
Returns
Returns a float ranging between 0 and 100, or false otherwise.
Example
This example gets the position of a memo called "theMemo" created with guiCreateMemo, and outputs it to the chatbox.
local theMemo = guiCreateMemo( 0, 0, 200, 100, [[Insert some long text here]], false ) if ( theMemo ) then local position = guiMemoGetVerticalScrollPosition( theMemo ) outputChatBox( "Current scroll position of the memo: " .. position .. "%" ) else outputChatBox( "Memo not found!" ) end
See Also
General functions
- guiBringToFront
- getChatboxLayout
- getChatboxCharacterLimit
- guiCreateFont
- guiBlur
- guiFocus
- guiGetAlpha
- guiGetCursorType
- guiGetEnabled
- guiGetFont
- guiGetInputEnabled
- guiGetInputMode
- guiGetPosition
- guiGetProperties
- guiGetProperty
- guiGetScreenSize
- guiGetSize
- guiGetText
- guiGetVisible
- guiMoveToBack
- guiSetAlpha
- guiSetEnabled
- guiSetFont
- guiSetInputEnabled
- guiSetInputMode
- guiSetPosition
- guiSetProperty
- guiSetSize
- guiSetText
- guiSetVisible
- isChatBoxInputActive
- isConsoleActive
- isDebugViewActive
- isMainMenuActive
- isMTAWindowActive
- isTransferBoxActive
- setChatboxCharacterLimit
- setDebugViewActive
Browsers
Buttons
Checkboxes
Comboboxes
- guiCreateComboBox
- guiComboBoxAddItem
- guiComboBoxClear
- guiComboBoxGetItemCount
- guiComboBoxGetItemText
- guiComboBoxGetSelected
- guiComboBoxIsOpen
- guiComboBoxRemoveItem
- guiComboBoxSetItemText
- guiComboBoxSetOpen
- guiComboBoxSetSelected
Edit Boxes
- guiCreateEdit
- guiEditGetCaretIndex
- guiEditGetMaxLength
- guiEditIsMasked
- guiEditIsReadOnly
- guiEditSetCaretIndex
- guiEditSetMasked
- guiEditSetMaxLength
- guiEditSetReadOnly
Gridlists
- guiCreateGridList
- guiGridListAddColumn
- guiGridListAddRow
- guiGridListAutoSizeColumn
- guiGridListClear
- guiGridListGetColumnCount
- guiGridListGetColumnTitle
- guiGridListGetColumnWidth
- guiGridListGetHorizontalScrollPosition
- guiGridListGetItemColor
- guiGridListGetItemData
- guiGridListGetItemText
- guiGridListGetRowCount
- guiGridListGetSelectedCount
- guiGridListGetSelectedItem
- guiGridListGetSelectedItems
- guiGridListGetSelectionMode
- guiGridListIsSortingEnabled
- guiGridListGetVerticalScrollPosition
- guiGridListInsertRowAfter
- guiGridListRemoveColumn
- guiGridListRemoveRow
- guiGridListSetColumnTitle
- guiGridListSetColumnWidth
- guiGridListSetHorizontalScrollPosition
- guiGridListSetItemColor
- guiGridListSetItemData
- guiGridListSetItemText
- guiGridListSetScrollBars
- guiGridListSetSelectedItem
- guiGridListSetSelectionMode
- guiGridListSetSortingEnabled
- guiGridListSetVerticalScrollPosition
Memos
- guiCreateMemo
- guiMemoGetCaretIndex
- guiMemoGetVerticalScrollPosition
- guiMemoSetVerticalScrollPosition
- guiMemoIsReadOnly
- guiMemoSetCaretIndex
- guiMemoSetReadOnly
Progressbars
Radio Buttons
Scrollbars
Scrollpanes
- guiCreateScrollPane
- guiScrollPaneGetHorizontalScrollPosition
- guiScrollPaneGetVerticalScrollPosition
- guiScrollPaneSetHorizontalScrollPosition
- guiScrollPaneSetScrollBars
- guiScrollPaneSetVerticalScrollPosition
Static Images
Tab Panels
Tabs
Text Labels
- guiCreateLabel
- guiLabelGetColor
- guiLabelGetFontHeight
- guiLabelGetTextExtent
- guiLabelSetColor
- guiLabelSetHorizontalAlign
- guiLabelSetVerticalAlign
Windows
Input
GUI
- onClientGUIAccepted
- onClientGUIBlur
- onClientGUIChanged
- onClientGUIClick
- onClientGUIComboBoxAccepted
- onClientGUIDoubleClick
- onClientGUIFocus
- onClientGUIMouseDown
- onClientGUIMouseUp
- onClientGUIMove
- onClientGUIScroll
- onClientGUISize
- onClientGUITabSwitched
- onClientMouseEnter
- onClientMouseLeave
- onClientMouseMove
- onClientMouseWheel