HorizontalBarPos||doc136550

September 20, 2022

Format

ScrollableView.HorizontalBarPos

Describe

The sliding bar position of the sliding area in the horizontal direction, 0 ~ 1.

Code Example

image.png

-- create layout window
local APIRootWindow = UI:CreateGUIWindow("API")

--Set the window to the root node of the UI
APIRootWindow.Parent = UI.Root

--According to the name to get the ScrollableView control for testing
local scrollView = APIRootWindow.APIScrollableView

--Set the position of the slider bar in the horizontal direction of the sliding area
scrollView.HorizontalBarPos = 0.5