DgsScrollPaneGetScrollBarState

From Multi Theft Auto: Wiki

This function get the force state of the scroll bar of the scroll pane

Syntax

bool/nil, bool/nil dgsScrollPaneGetScrollBarState( element scrollPane )

Required Arguments

  • scrollPane: The dgs scroll pane to get from.

Returns

Returns two bool/nil indicate the state of scroll bar of the scroll pane.

  • true: Force to be visible
  • false: Force to be invisible
  • nil: Auto adjusting

Example

DGS = exports.dgs

local scrollPane = DGS:dgsCreateScrollPane ( 0.45, 0.45, 0.15, 0.15, true ) 
local label = DGS;dgsCreateLabel(0.2,5,0.2,0.2,"test",true,scrollPane)
local vertical, horizontal = DGS:dgsScrollPaneGetScrollBarState(scrollPane)
outputChatBox("State:"..tostring(vertical)..","..tostring(horizontal))

See Also

Multi Language Supports

Animation

3D Interface

3D Text

Arrow List

Browser

Button

Check Box

Combo Box

Custom Renderer

Edit

Ellipse Detect Area

Detect Area

Grid List

Image

Memo

Label

Progress Bar

Radio Button

Scroll Bar

Scroll Pane

Switch Button

Tab Panel

Window

Plugin

Media Browser

Rounded Rectangle

Color Picker

Blur Box

Effect 3D

Nine Slice

Object Preview

QRCode

mask