GuiGridListSetScrollBars

From Multi Theft Auto: Wiki
(Redirected from GuiGridListSetScrollbars)
Jump to navigation Jump to search

This function allows a gridlist's scrollbar to be forced on, or returned to default.

Syntax

bool guiGridListSetScrollBars ( element guiGridlist, bool horizontalBar, bool verticalBar )

OOP Syntax Help! I don't understand this!

Method: GuiGridList:setScrollBars(...)


Required Arguments

  • guiGridlist: The GUI gridlist you wish to change the state of scrollbars
  • horizontalBar: A bool where true forces the horizontal scrollbar on, and false returns them to default.
  • verticalBar: A bool where true forces the verical scrollbar on, and false returns them to default.

Returns

Returns true if the scrollbars were successfully set, false otherwise.

Example

This example creates a gridlist and checks if it's created then sets the scroll bars. (TESTED!)

gridlist = guiCreateGridList(332,195,286,249,false)

if(gridlist)then
	guiGridListSetScrollBars(gridlist,true,true)
end

See Also

General functions

Browsers

Buttons

Checkboxes

Comboboxes

Edit Boxes

Gridlists

Memos

Progressbars

Radio Buttons

Scrollbars

Scrollpanes

Static Images

Tab Panels

Tabs

Text Labels

Windows

Input

GUI