Garry's Mod Wiki

Garry's Mod Wiki

  DHScrollBar:SetUp( number barSize, number canvasSize )

Description

Sets up the scrollbar for use.

The scrollbar will automatically disable itself if the total width of the canvas is lower than the width of the panel that holds the canvas during this function call.

Arguments

1 number barSize
The size of the panel that holds the canvas, basically size of "1 page".
2 number canvasSize
The total size of the canvas, this typically is the bigger number.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...