DgsMemoGetScrollBarState

From Multi Theft Auto: Wiki

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

Syntax

bool/nil, bool/nil dgsMemoGetScrollBarState( element memo )

Required Arguments

  • memo: The dgs memo to get from.

Returns

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

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

Example

DGS = exports.dgs

local memo = DGS:dgsCreateMemo ( 0.45, 0.45, 0.15, 0.15, "Test", true ) 
local vertical, horizontal = DGS:dgsMemoGetScrollBarState(memo)
outputChatBox("State:"..tostring(vertical)..","..tostring(horizontal))	--returns nil,nil ( auto adjusting by default )

See Also

Multi Language Supports

Animation

3D Interface

3D Text

Arrow List

Browser

Button

Check Box

Combo Box

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