Garry's Mod Wiki

Revision Difference

DVScrollBar:SetUp#515653

<function name="SetUp" parent="DVScrollBar" type="panelfunc">⤶ <ispanel>yes</ispanel>⤶ <description>⤶ Sets up the scrollbar for use.⤶ ⤶ The scrollbar will automatically disable itself if the total height of the canvas is lower than the height of the panel that holds the canvas during this function call.⤶ </description>⤶ <realm>Client</realm>⤶ <args>⤶ <arg name="barSize" type="number">The size of the panel that holds the canvas, basically size of &quot;1 page&quot;.</arg>⤶ <arg name="cavasSize" type="number">The total size of the canvas, this typically is the bigger number.</arg>⤶ </args>⤶ </function>⤶ ⤶