GuiGridListSetScrollBars: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 21: Line 21:


if(gridlist)then
if(gridlist)then
guiGridListSetScrollBars(scrollpane,true,true)
guiGridListSetScrollBars(gridlist,true,true)
end
end
</syntaxhighlight>
</syntaxhighlight>

Revision as of 06:32, 24 June 2012

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

Syntax

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

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