GuiGridListSetScrollBars

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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