Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:VerticalScrollbarGetPageSize

From RoR Wiki
Revision as of 19:51, 16 October 2026 by Maintenance script (talk | contribs) (UI Lua API import (WAR 1.4.8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

UI Lua API · Scrollbar functions
Version: WAR 1.4.8

Returns the page size of a VerticalScrollbar.

pageSize = VerticalScrollbarGetPageSize(scrollbarName)

Arguments

scrollbarName
string – Name of the VerticalScrollbar.

Returns

pageSize
number – The page size: the part of the content that is visible at once.

Details

  • The page size sets the length of the thumb relative to the maximum scroll position, and the highest reachable position is the maximum scroll position minus the page size.
  • VerticalScrollbarSetPageSize does not change this value; use VerticalScrollbarSetLineSize (see that page).
  • The stock UI never calls this function.

Errors

  • Error in function call 'VerticalScrollbarGetPageSize': Window %s does not exist
  • Error in function call 'VerticalScrollbarGetPageSize': Window %s is not a VerticalScrollbar

Example

A minimal example built from the signature:

local pageSize = VerticalScrollbarGetPageSize( "MyScrollbar" )

See also