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

Browser

Button

Check Box

Combo Box

Custom Renderer

Edit

Detect Area

Grid List

Image

Memo

Label

Progress Bar

Radio Button

Scroll Bar

Scroll Pane

Selector

Switch Button

Tab Panel

Window

Plugin

Blur Box

Color Picker

Canvas

Effect 3D

Media Browser

Mask

Nine Slice

Object Preview Supports

Paste Handler

QRCode

Remote Image

Rounded Rectangle